Nginx错误页面跳转

1、在http定义区域加入: fastcgi_intercept_errors on;

2、在server 区域加入:error_page 500 404 403 /404.html;
或 error_page 500 502 503 504 404 403  http://blog.51cto.com;

你可能感兴趣的:(nginx,error,职场,休闲)