diff --git a/nginx.conf b/nginx.conf index 00c1098..a96a09c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -23,7 +23,5 @@ http { gzip_http_version 1.1; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; - proxy_intercept_errors on; - include /etc/nginx/sites/*; } diff --git a/sites/client.conf b/sites/client.conf index 90d9505..d6f067f 100644 --- a/sites/client.conf +++ b/sites/client.conf @@ -8,6 +8,7 @@ server { include /etc/nginx/snippets/proxy-params.conf; } location /api/ { + proxy_intercept_errors off; proxy_pass http://proxmoxaas.dmz:80; include /etc/nginx/snippets/proxy-params.conf; } diff --git a/snippets/error-pages.conf b/snippets/error-pages.conf index 24948b5..3bd0c29 100644 --- a/snippets/error-pages.conf +++ b/snippets/error-pages.conf @@ -1,3 +1,5 @@ +proxy_intercept_errors on; + error_page 400 /ErrorPages/HTTP400.html; error_page 401 /ErrorPages/HTTP401.html; error_page 402 /ErrorPages/HTTP402.html;