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.