Home >Backend Development >PHP Tutorial >nginx problem, I have no problem accessing other paths, but this path reports an error
An error occurred while accessing this:
Read the log:
An error occurred while accessing this:
Read the log:
The configuration given by the questioner is incomplete, I will talk about the possibility of errors based on the existing ones:
log is D:/nginx_project/whois/whois
. Maybe the questioner actually wants to access the things under D:/nginx_project/whois
, so there is something wrong with the configuration.
If you just want to access D:/nginx_project/whois/whois
, then please make sure there is an index.* file in it, otherwise there will be a 403 error.
Finally, there is something strange...why does the browser screenshot have redirect information...
nginx doesn’t have permission to read that file?
What framework are you using? If you are using laravel, the root must point to the public folder
Debugging.
Zhazha Windows, it’s such an easy thing, just use your nginx account and try accessing this directory directly. If it doesn't work, open Filemon.exe, and if it doesn't work, use nginx source code level debugging. Anyway, Windows has the most powerful IDE in the solar system, so I'm afraid of glitches.