Installing Nginx reverse proxy server under Windows

Source: Internet
Author: User
Tags nginx reverse proxy

First, to the Nginx official website to download the latest version, download URL:

Http://nginx.org/en/download.html

Second, unzip the zip package, the directory is changed to Nginx. Placed in the D-packing directory, can also be placed in other directories.

Then at the command line, switch Nginx's home directory execution command can start, stop, restart.

Start Nginx    //   Start-S Stop    //  stop nginx-S Reload     Reload the configuration file and restart

Three, configuration:

#隐藏版本号 server_tokens off; #默认用IP访问时 Server {Listen theDefault_server;        server_name _; return 444; #rewrite^ http://www.pipidaohang.com;} #多配一个域名 Server {Listen the;        server_name www.pipidaohang.com; Location/{#本机目录 #root html/12345678;                        #index index.html index.htm; #解决 #反向代理配置 proxy_pass http://220.111.222.333:8080;} error_page - 502 503 504/50x.html; Location= /50x.html {root HTML/12345678; }    }

Installing Nginx reverse proxy server under Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.