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

本站现有博文326篇,共被浏览823874

本站已经建立2529天!

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