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

本站现有博文328篇,共被浏览837841

本站已经建立2542天!

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