代碼錯誤碼跳轉設置就是要在nginx.conf下設置如下:
proxy_intercept_errors on;
fastcgi_intercept_errors on;
然後再每一個域名.conf下增加錯誤碼跳轉:
error_page 404 = http://m.test.com;
error_page 500 502 503 504 /50x.html;
代碼錯誤碼跳轉設置就是要在nginx.conf下設置如下:
proxy_intercept_errors on;
fastcgi_intercept_errors on;
然後再每一個域名.conf下增加錯誤碼跳轉:
error_page 404 = http://m.test.com;
error_page 500 502 503 504 /50x.html;