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

本站现有博文337篇,共被浏览961415次

本站已经建立2673天!

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