I configured my project on my colleague’s computer yesterday
After modifying host and nginx.conf, cmd to enter the nginx directory
nginx stop
start nginx
Open the server_name I configured
403
Why? First check the configuration file
to make sure there is no problem
Then check the file permissions (the permissions under win, it feels like they don’t exist, otherwise why would there be so many Family Buckets). No problem
I don’t understand, so I turned off nginx again
and found it was still 403. . What the hell, it shouldn’t be 403! It should be rejection
Check the process
There are four or five nginx processes running.
You’re kidding me
I can’t close
Task Manager, just close
and open
one by one. It’s running
Summary:
After modifying the configuration under win, be sure to restart the entire software. If you are not sure, you can open the task manager to see if there are any processes. If there is, just force it off
It is recommended not to use win for development. It’s a bit tricky. If you can buy a mac, buy it. If you can’t afford it, choose ubunto, etc. . .
The above introduces the 403 notes on the nginx configuration website in the win environment, including the content of nginx and 403. I hope it will be helpful to friends who are interested in PHP tutorials.