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

本站现有博文332篇,共被浏览875364

本站已经建立2583天!

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