> location /org { > proxy_pass http://org; > } > Something like: proxy_intercept_errors on; location /org { proxy_pass http://org; error_page 502 503 504 /error/page.html } location /error { root /path/to/my/error/pages; } Maybe? Probably have typos, done from memory