1、更改/usr/local/nginx/conf/nginx.conf在http定义区域加入: fastcgi_intercept_errors on;
2、更改网站站点nginx.conf 在网站配置中在server 区域加入: error_page 404 /404.html;
重启nginx
1、更改/usr/local/nginx/conf/nginx.conf在http定义区域加入: fastcgi_intercept_errors on;
2、更改网站站点nginx.conf 在网站配置中在server 区域加入: error_page 404 /404.html;
重启nginx
转载于:https://www.cnblogs.com/day959/p/6694905.html