Please check nginx docs at http://nginx.org/en/docs/http/ngx_http_core_module.html#error_page
Your error_page directive uses "=", which tells nginx to replace status code with whatever is returned while fetching "/errors/error_503_gateway.html".
W dniu poniedziałek, 23 lipca 2018 15:35:36 UTC+2 użytkownik Hadi Abbasi napisał:
HEY FRIENDS ...
by using this code:
proxy_intercept_errors on;
error_page 500 501 502 503 = /errors/error_503_gateway.html;
location /errors/ {
root /usr/local/openresty/assets;
allow all;
#internal;
}
I want to load error_503_gateway.html page when we are encountering to error status from 500 - 503!
so the loading of the page is correct but the status code of the error page is 200, so I want to set it to main $status code!
thanks a lot...
Best,