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

本站现有博文321篇,共被浏览763909

本站已经建立2439天!

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