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

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

本站已经建立2618天!

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