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

本站现有博文320篇,共被浏览755726

本站已经建立2418天!

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