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

本站现有博文339篇,共被浏览1002179次

本站已经建立2712天!

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