fix failpage
This commit is contained in:
parent
ef8ba84ebc
commit
74f04d975c
@ -1,6 +1,6 @@
|
|||||||
upstream backend {
|
upstream backend {
|
||||||
{% for server in upstream_servers %}
|
{% for server in upstream_servers %}
|
||||||
server {{ server }} max_fails=1 fail_timeout=5s;
|
server {{ server }} max_fails=1 fail_timeout=10s;
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -12,9 +12,9 @@ server {
|
|||||||
ssl_certificate /etc/nginx/ssl/{{ ssl_cert_file }};
|
ssl_certificate /etc/nginx/ssl/{{ ssl_cert_file }};
|
||||||
ssl_certificate_key /etc/nginx/ssl/{{ ssl_key_file }};
|
ssl_certificate_key /etc/nginx/ssl/{{ ssl_key_file }};
|
||||||
|
|
||||||
error_page 502 503 504 /custom_50x.html;
|
error_page 502 503 504 /site_down.html;
|
||||||
|
|
||||||
location = /custom_50x.html {
|
location = /site_down.html {
|
||||||
root /var/www/errors;
|
root /var/www/errors;
|
||||||
internal;
|
internal;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user