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

本站现有博文323篇,共被浏览795657

本站已经建立2493天!

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