Add fallback webpage if main is not available

This commit is contained in:
Fijxu 2022-12-26 21:14:25 -03:00
parent f3cc58b092
commit a89530f112

View file

@ -24,16 +24,16 @@ server {
return 401 "lol"; return 401 "lol";
} }
error_page 502 = @fallback; error_page 501 502 503 /50x.html;
proxy_intercept_errors on; proxy_intercept_errors on;
} }
location @fallback { location = /50x.html {
root /var/www/logs; root /var/www/logs;
index index.html; index 50x.html;
}
}
listen [::]:443 ssl http2; # managed by Certbot listen [::]:443 ssl http2; # managed by Certbot
listen 443 ssl http2; # managed by Certbot listen 443 ssl http2; # managed by Certbot