fastcgi_intercept_errors
语法:fastcgi_intercept_errors on|off
默认值:fastcgi_intercept_errors off
使用字段:http, server, location
这个指令指定是否传递4xx和5xx错误信息到客户端,或者允许nginx使用error_page处理错误信息。
在http下配置:
fastcgi_intercept_errors on;
在server下配置:
error_page 404 = http://news.163.com/special/special.html;
error_page 500 502 503 504 = /50x.html;
附公益404网址:
https://notfound.collaction.hk/