I had my project with my colleague's computer yesterday.
Modify host,nginx.conf complete, cmd into nginx directory
Nginx Stop
Start Nginx
Open the server_name you deserve.
403
Why? View the configuration file first
OK no problem
Then check the file permissions (win under the permission, special feel like not exist, otherwise how can have so many family barrels). It's okay.
Don't understand, just shut the nginx down.
The discovery is still 403 ... What a ghost, should not be 403 Ah! It's supposed to be a refusal.
View process
There are four or five nginx processes running in the special.
Are you kidding me?
Can't shut it off.
Task Manager, turn it off.
Re-open
All right. It's running up.
Summarize:
After you modify the configuration in win, restart must be sure to determine the entire software restart, not sure to open the Task Manager to see if there is a process. There is a direct strong off
Suggest development or do not use win, slightly pit, can buy Mac to buy, can't afford to choose Ubunto ...
The above describes the win environment Nginx configuration site 403, including the nginx,403 aspects of the content, I hope that the PHP tutorial interested in a friend helpful.