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

本站现有博文312篇,共被浏览745531

本站已经建立2391天!

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