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

本站现有博文338篇,共被浏览978472次

本站已经建立2691天!

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