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

本站现有博文333篇,共被浏览925040

本站已经建立2632天!

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