Windows Nginx installation, configuring the reverse proxy

Source: Internet
Author: User

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

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.