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

本站现有博文340篇,共被浏览1017855次

本站已经建立2718天!

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