Nginx problem. if I access other paths, this path will report an error.

Source: Internet
Author: User
An error occurred while accessing the log:

An error occurred while accessing this:

Read the log:

Reply content:

An error occurred while accessing this:

Read the log:

The configuration provided by the subject is incomplete. I will discuss the possibility of errors based on the existing ones:

  • The directory accessed in log isD:/nginx_project/whoisMaybe the subject actually wants to accessD:/nginx_project/whoisThe following is what is wrong with the configuration.

  • If you want to accessD:/nginx_project/whoisMake sure the index. * file exists. Otherwise, the error 403 will occur.

  • At last, it's a bit strange... why does the browser have redirection information ....

Does nginx have the permission to read that file?

What framework are you using? if you are using laravel, root should point to the public folder.

Debugging.

For windows, it is so easy to use the nginx account to directly access this directory. Filemon.exe is enabled for zookeeper, and nginx source code-level debugging is not supported. the most powerful IDE in the solar system is installed on the dregs Windows.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.