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

本站现有博文327篇,共被浏览833154

本站已经建立2538天!

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