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

本站现有博文322篇,共被浏览787369

本站已经建立2481天!

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