fix failpage
This commit is contained in:
parent
ef8ba84ebc
commit
74f04d975c
@ -1,6 +1,6 @@
|
||||
upstream backend {
|
||||
{% for server in upstream_servers %}
|
||||
server {{ server }} max_fails=1 fail_timeout=5s;
|
||||
server {{ server }} max_fails=1 fail_timeout=10s;
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
@ -12,9 +12,9 @@ server {
|
||||
ssl_certificate /etc/nginx/ssl/{{ ssl_cert_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;
|
||||
internal;
|
||||
}
|
||||
@ -34,4 +34,4 @@ server {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user