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

本站现有博文340篇,共被浏览1028895次

本站已经建立2721天!

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