Home >Backend Development >PHP Tutorial >nginx problem, I have no problem accessing other paths, but this path reports an error

nginx problem, I have no problem accessing other paths, but this path reports an error

WBOY
WBOYOriginal
2016-12-05 13:44:171469browse

nginx problem, I have no problem accessing other paths, but this path reports an error

An error occurred while accessing this:

nginx problem, I have no problem accessing other paths, but this path reports an error

Read the log:

nginx problem, I have no problem accessing other paths, but this path reports an error

Reply content:

nginx problem, I have no problem accessing other paths, but this path reports an error

An error occurred while accessing this:

nginx problem, I have no problem accessing other paths, but this path reports an error

Read the log:

nginx problem, I have no problem accessing other paths, but this path reports an error

The configuration given by the questioner is incomplete, I will talk about the possibility of errors based on the existing ones:

    The directory accessed in the
  • 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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn