首页 > 其他 > 详细

nginx自定义500、404错误页面

时间:2016-09-18 15:39:51      阅读:114      评论:0      收藏:0      [点我收藏+]

1,首先在http添加以下内容


http{

fastcgi_intercept_errors on;

}


2,server中添加以下内容:

注意路径

error_page 500 502 503 504  = /500.html;

location /500.html {

internal;

}


error_page 404   /404.html;

location /404.html {

internal;

}


本文出自 “crazy_sir” 博客,请务必保留此出处http://douya.blog.51cto.com/6173221/1853577

nginx自定义500、404错误页面

原文:http://douya.blog.51cto.com/6173221/1853577

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!