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

本站现有博文337篇,共被浏览950037

本站已经建立2661天!

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