temporary fix for error pages
This commit is contained in:
parent
7ca4ae2c55
commit
bbb8f02371
@ -3,7 +3,7 @@ server {
|
||||
server_name paas.tronnet.net;
|
||||
include /etc/nginx/snippets/ssl-acme.conf;
|
||||
location /dashboard/ {
|
||||
#include /etc/nginx/snippets/error-pages.conf;
|
||||
include /etc/nginx/snippets/error-pages.conf;
|
||||
proxy_pass http://proxmoxaas.dmz:8080/;
|
||||
proxy_redirect default;
|
||||
}
|
||||
@ -14,4 +14,5 @@ server {
|
||||
location = / {
|
||||
return 301 "/dashboard/";
|
||||
}
|
||||
include /etc/nginx/snippets/error-location.conf;
|
||||
}
|
||||
|
15
snippets/error-location.conf
Normal file
15
snippets/error-location.conf
Normal file
@ -0,0 +1,15 @@
|
||||
#proxy_intercept_errors on;
|
||||
|
||||
#error_page 400 /ErrorPages/HTTP400.html;
|
||||
#error_page 401 /ErrorPages/HTTP401.html;
|
||||
#error_page 403 /ErrorPages/HTTP403.html;
|
||||
#error_page 404 /ErrorPages/HTTP404.html;
|
||||
#error_page 500 /ErrorPages/HTTP500.html;
|
||||
#error_page 501 /ErrorPages/HTTP501.html;
|
||||
#error_page 502 /ErrorPages/HTTP502.html;
|
||||
#error_page 503 /ErrorPages/HTTP503.html;
|
||||
|
||||
location /ErrorPages/ {
|
||||
alias /var/www/html/ErrorPages/;
|
||||
internal;
|
||||
}
|
@ -9,7 +9,7 @@ error_page 501 /ErrorPages/HTTP501.html;
|
||||
error_page 502 /ErrorPages/HTTP502.html;
|
||||
error_page 503 /ErrorPages/HTTP503.html;
|
||||
|
||||
location /ErrorPages/ {
|
||||
alias /var/www/html/ErrorPages/;
|
||||
internal;
|
||||
}
|
||||
#location /ErrorPages/ {
|
||||
# alias /var/www/html/ErrorPages/;
|
||||
# internal;
|
||||
#}
|
||||
|
Loading…
Reference in New Issue
Block a user