nginx fastcgi 自定义错误页面

http{

fastcgi_intercept_errors on;

error_page 404 /404.html;

}

fastcgi_intercept_errors on;必须设置

之后通过 error_page 错误代码 错误页面;来设置不同的错误指向的页面。

注意,错误页面相对于访问域名的根目录,即站点根目录


原文地址:https://www.cnblogs.com/dyllove98/p/3153408.html