Do not serve up the status page for 500 upstream errors

This commit is contained in:
Johannes Zellner
2015-11-13 09:39:33 +01:00
parent d89db24bfc
commit 8bd9a6c109

View File

@@ -37,7 +37,8 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
error_page 500 502 503 504 @appstatus;
# only serve up the status page if we get proxy gateway errors
error_page 502 503 504 @appstatus;
location @appstatus {
return 307 <%= adminOrigin %>/appstatus.html?referrer=https://$host$request_uri;
}