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

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

本站已经建立2597天!

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