1, first you have to download nginx (due to the company server environment restrictions can only use the Windows version of the best or Linux)
http://nginx.org/
Mainline version means that the development is the main development of the current
Stable version stable, that's it .
Legacy versions previous stable version
2, download after decompression, and then run Nginx.exe if the error logs folder error.log See what the reason is generally 80 port number is occupied here say how to solve this problem
Error message: Bind () to 0.0.0.0:80 failed (10013:an attempt is made to access a socket in a-type forbidden by its access Permissio Ns
First look at the 80 port number is occupied by WHO: Netstat-aon | Findstr:80 find the PID to go to the task Manager to find the general system occupied
Then open the registry (regedit) found: Hkey_local_machine\system\currentcontrolset\services\http Open start to change 3 to 4 reboot system and run Nginx.exe
3, open http://localhost/have welcome to nainx! Description Startup Success
4. Disable Nginx nginx-s stop modify configuration after overloading Nginx-s reload
5, reverse proxy to the folder C:\nginx-1.10.1\conf find the file nginx.conf directly add a test map to see the more clear
And then you can point the host www.ceshi1.com to your own IP.
Windows Nginx installation, configuring the reverse proxy