fix config HAProxy
This commit is contained in:
parent
e6906c6336
commit
6ff94a53d0
1 changed files with 3 additions and 4 deletions
|
@ -162,7 +162,6 @@ frontend external
|
|||
# BEGIN frontend_external section for site 'example'
|
||||
acl example_com_domains hdr(host) -i example.com
|
||||
acl example_com_domains2 hdr(host) -i example.org www.example.org
|
||||
### acl example_maintenance_ips src -f /etc/haproxy/example/maintenance_ips
|
||||
|
||||
# Redirect to HTTPS without Let's Encrypt certificate
|
||||
### redirect scheme https code 301 if example_com_domains !{ ssl_fc }
|
||||
|
@ -183,8 +182,8 @@ frontend external
|
|||
### http-request deny if example_com_domains { src 1.2.3.4 }
|
||||
|
||||
# routing directives, all conditionned by (at least) the "example_com_domains" ACL
|
||||
# Maintenance mode (### -> uncomment BUT define example_maintenance_ips acl before)
|
||||
### use_backend example_maintenance if example_com_domains !example_maintenance_ips !maintenance_ips
|
||||
# Maintenance mode (### -> uncomment BUT define example_com_maintenance_ips acl before)
|
||||
### use_backend example_com_maintenance if example_com_domains !example_com_maintenance_ips !maintenance_ips
|
||||
|
||||
# Use Varnish if available
|
||||
use_backend varnish if example_com_domains varnish_available varnish_http_verb
|
||||
|
@ -246,7 +245,7 @@ backend example_com
|
|||
http-response set-header X-Boost-Proto http if !{ ssl_bc }
|
||||
server example-hostname 1.2.3.4:443 check observe layer4 ssl verify none
|
||||
|
||||
backend example_maintenance
|
||||
backend example_com_maintenance
|
||||
http-request set-log-level silent
|
||||
errorfile 503 /etc/haproxy/sites/example/maintenance.http
|
||||
# END backend section for site 'example'
|
||||
|
|
Loading…
Add table
Reference in a new issue