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

本站现有博文321篇,共被浏览771649

本站已经建立2460天!

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