# vim /usr/local/nginx/conf/nginx.conf
在http { 下加入
fastcgi_intercept_errors on;
error_page 404 /404.html;
//这个也可以加入到虚拟主机server中,加到虚拟主机中,只对单个虚拟主机生效,加到http中,对所有虚拟主机生效
PS:
# vim /usr/local/nginx/conf/nginx.conf
在http { 下加入
fastcgi_intercept_errors on;
error_page 404 /404.html;
//这个也可以加入到虚拟主机server中,加到虚拟主机中,只对单个虚拟主机生效,加到http中,对所有虚拟主机生效
PS: