Add fallback webpage if main is not available
This commit is contained in:
parent
f3cc58b092
commit
a89530f112
1 changed files with 5 additions and 5 deletions
|
@ -24,16 +24,16 @@ server {
|
|||
return 401 "lol";
|
||||
}
|
||||
|
||||
error_page 502 = @fallback;
|
||||
error_page 501 502 503 /50x.html;
|
||||
proxy_intercept_errors on;
|
||||
|
||||
}
|
||||
|
||||
location @fallback {
|
||||
root /var/www/logs;
|
||||
index index.html;
|
||||
location = /50x.html {
|
||||
root /var/www/logs;
|
||||
index 50x.html;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
listen [::]:443 ssl http2; # managed by Certbot
|
||||
listen 443 ssl http2; # managed by Certbot
|
||||
|
|
Loading…
Reference in a new issue