EADST

Redirecting to a URL Using Nginx Configuration

Nginx is a powerful web server and reverse proxy server. Among its myriad features is the ability to effortlessly set up redirects for domains. In this post, we'll delve into a specific Nginx configuration that establishes a redirect for the domain xiedong.me and its www subdomain.

  1. apt-get install nginx # install

  2. /etc/init.d/nginx start # check nginx

  3. vim /etc/nginx/conf.d/config_name.conf

    server {
        listen 80;
        server_name xiedong.me www.xiedong.me;
        charset  utf-8;
        location / {
            rewrite ^/(.*)$ http://eadst.com/$1 permanent; # redirect to eadst.com
        }
    }

  4. /etc/init.d/nginx restart

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Plotly FP32 BeautifulSoup Website 签证 NLP Qwen GPTQ Llama Use Transformers Crawler GGML Hilton PDF PyTorch 证件照 tqdm Gemma PDB Domain Pytorch Qwen2 Input CLAP OpenAI Datetime Jetson transformers Card Web Review Statistics 飞书 Random mmap SAM Template Qwen2.5 Claude 继承 LaTeX PIP Hungarian Distillation Django Quantize Cloudreve Tiktoken RAR PyCharm GoogLeNet Zip VGG-16 WAN Github HuggingFace Translation Attention IndexTTS2 CEIR CSV Firewall FastAPI Magnet 多进程 多线程 SQLite Ptyhon InvalidArgumentError Markdown Breakpoint Google 版权 CUDA Bitcoin Sklearn diffusers SQL Numpy git tar Base64 API logger VPN BF16 Miniforge Clash CAM Proxy 算法题 FP16 关于博主 Shortcut Anaconda Git Dataset Baidu QWEN Michelin Video scipy uwsgi torchinfo GIT 公式 Data VSCode Quantization git-lfs C++ uWSGI Logo LLAMA Windows 域名 JSON XGBoost LeetCode GPT4 Bert Animate Safetensors 财报 BTC ChatGPT OCR FP64 MD5 Pandas Linux 净利润 Algorithm Vmess 腾讯云 Python Heatmap v2ray Mixtral Image2Text Freesound Paper Food DeepSeek Jupyter Vim Tensor Docker Plate ResNet-50 音频 UI 报税 v0.dev Disk TensorFlow Augmentation EXCEL printf hf CC SPIE Permission 阿里云 HaggingFace NLTK Land Bipartite WebCrawler Pillow Diagram UNIX Knowledge Math Bin CTC DeepStream Tracking NameSilo Ubuntu ONNX Paddle RGB Pickle OpenCV Nginx Streamlit LLM TSV Color AI 搞笑 FlashAttention Password Interview LoRA CV llama.cpp TensorRT Conda Excel ModelScope FP8 YOLO COCO TTS 视频信息 Hotel XML SVR
站点统计

本站现有博文311篇,共被浏览739740

本站已经建立2376天!

热门文章
文章归档
回到顶部