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

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

本站已经建立2493天!

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