move proxy intercept errors to error-pages.conf
This commit is contained in:
parent
13cf19b466
commit
75e24764be
@ -23,7 +23,5 @@ http {
|
|||||||
gzip_http_version 1.1;
|
gzip_http_version 1.1;
|
||||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
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/*;
|
include /etc/nginx/sites/*;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ server {
|
|||||||
include /etc/nginx/snippets/proxy-params.conf;
|
include /etc/nginx/snippets/proxy-params.conf;
|
||||||
}
|
}
|
||||||
location /api/ {
|
location /api/ {
|
||||||
|
proxy_intercept_errors off;
|
||||||
proxy_pass http://proxmoxaas.dmz:80;
|
proxy_pass http://proxmoxaas.dmz:80;
|
||||||
include /etc/nginx/snippets/proxy-params.conf;
|
include /etc/nginx/snippets/proxy-params.conf;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
proxy_intercept_errors on;
|
||||||
|
|
||||||
error_page 400 /ErrorPages/HTTP400.html;
|
error_page 400 /ErrorPages/HTTP400.html;
|
||||||
error_page 401 /ErrorPages/HTTP401.html;
|
error_page 401 /ErrorPages/HTTP401.html;
|
||||||
error_page 402 /ErrorPages/HTTP402.html;
|
error_page 402 /ErrorPages/HTTP402.html;
|
||||||
|
Loading…
Reference in New Issue
Block a user