nginx下error_page 和 proxy_intercept_errors 設置

代碼錯誤碼跳轉設置就是要在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;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章