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

本站现有博文333篇,共被浏览922066

本站已经建立2628天!

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