Home>Article>Operation and Maintenance> What does 404 not found nginx mean?

What does 404 not found nginx mean?

藏色散人
藏色散人 Original
2019-08-27 09:40:26 23416browse

What does 404 not found nginx mean?

404 not found What does nginx mean?

The server cannot find the requested web page. For example, the server typically returns this code if the request is for a page that does not exist on the server.

This is related to your nginx settings. Usually there is no corresponding web page under the access path set by nginx.

An nginx configuration example:

... server { listen 80; server_name app.test.cc; index index.jsp index.htm index.html; root /home/app/login/jboss/webapps .... location ~ .*\.(xml|htm|html)$ { expires -1s; } .... }

Configured as above, add you to access app.test.cc directly. Then the request will go directly to the directory /home/app/login/jboss/webapps set by your root to search for the page file index index.jsp index.htm index.html. If it is not found, a 404 error will be reported.

Also, you can install firefox and install the component firebug, open firefox and press F12, and then visit your page. At this time, Firefox will give you every step of the access request, the reason for the failure, and the failed link.

For more Nginx related technical articles, please visit theNginx usage tutorialcolumn to learn!

The above is the detailed content of What does 404 not found nginx mean?. For more information, please follow other related articles on the PHP Chinese website!

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
Previous article:What does 502nginx mean? Next article:What does 502nginx mean?