nginx设置404页面

1、更改/usr/local/nginx/conf/nginx.conf在http定义区域加入: fastcgi_intercept_errors on;
2、更改网站站点nginx.conf 在网站配置中在server 区域加入: error_page 404   /404.html;

重启nginx

posted @ 2017-04-11 18:32  day959  阅读(205)  评论(0)    收藏  举报