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 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!