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

What does 404 not found nginx mean?

藏色散人
Release: 2019-08-27 09:40:26
Original
23710 people have browsed it

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;
}
....
}
Copy after login

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 the Nginx usage tutorial column 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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template