Using Nginx as a reverse proxy on Windows
Server_name : Domain name , which is what we enter in the browser
Proxy_pass: forwarding address, equivalent to forwarding in java
Note: The server_name cannot be configured randomly here. If you configure it as www.1234.com and your ip is localhost, you will not be able to access anything, because the domain name www.1234.com cannot resolve the ip of localhost .
Run the screenshot:
refer to:
Install Nginx on Windows :
① http://www.cnblogs.com/chuncn/archive/2011/10/14/2212291.html
Use Nginx as a reverse proxy:
② http://blog.csdn.net/cws1214/article/details/50544470
Detailed configuration:
③ http://www.ha97.com/5194.html