Window Nginx initiates a silent error without listen 80 port

Source: Internet
Author: User
Always use virtual machine to use web+hostonly mode;

To test the window System compatibility for a PHP platform today,

In the official download Window-nginx 1.9.1 version;

Unzip to the directory,

Run Nginx.exe

Access 127.0.0.1 normal;

Then modify the nginx.conf to replace the inside of the server{} with the include./vhost/*.conf;

Build the Vhost directory under the Conf directory and copy a site's server conf file from CentOS, and modify the directory that the root points to. Save;

Use nginx.exe-t test all OK;

Use Nginx.exe & start up;

Access found inaccessible using 127.0.0.1;

Using NETSAT-ANB not found 80 ports appear;

See Error.log also found no errors. Toss a good freshman meeting. No conclusion;

Forced to restore nginx.conf, access to normal;

Simply add the include./vhost/*.conf inside the http{};

It is normal to visit 127.0.0.1 again. Just visit my site.

Config test also prompt is OK;

Strange, whim, the vhost in the Conf content to move into the nginx.conf try;

One move, use the config test to prompt: Nginx: [Emerg] The UNIX domain sockets is not supported on this platform in upstream "unix:/run/ph P-fpm/php-fpm.sock "in d:\web\nginx/conf/nginx.conf:73

It was the server that was originally cenots the following configuration is invalid, but put in the include but always see no error, and ignored this server caused;

So here is the conclusion: this should be nginx bug, but we are currently in the configuration process, as far as possible on the main configuration file nginx.conf configuration is not a problem, and then moved into the sub-file,

You can pass the error prompts us to do a step-by-step configuration to do well;

The above describes the window Nginx start silent error, but did not listen 80 port, including the content, I hope the PHP tutorial interested in a friend helpful.

  • 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.