404 not found nginx是什么意思


404 not found nginx是什么意思

文章插图
 
 
404 not found Nginx是什么意思?
服务器找不到请求的网页 。例如 , 如果请求是针对服务器上不存在的网页进行的 , 那么 , 服务器通常会返回此代码 。
【404 not found nginx是什么意思】这个与你nginx设置有关 , 通常是nginx设置的访问路径下没有相应的网页 。
一个nginx配置示例:
...
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;
}
....
}
如上所配置 , 加入你直接访问app.test.cc。那么请求会直接到你root设置的目录/home/app/login/jboss/webapps下依次找寻index index.jsp index.htm index.html的页面文件 , 没有找到就会报404错误 。
另 , 你可以安装firefox并安装组件firebug , 打开firefox按F12 , 再访问你的页面 。这时候 , 火狐会将你访问请求的每一步 , 失败的原因 , 及失败的链接都给出来 。
更多Nginx相关技术文章 , 请访问Nginx使用教程栏目进行学习!
以上就是404 not found nginx是什么意思的详细内容 , 更多请关注其它相关文章!




    推荐阅读