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

本站现有博文324篇,共被浏览807488

本站已经建立2508天!

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