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

本站现有博文330篇,共被浏览861071

本站已经建立2569天!

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