frontend web-front
bind 0.0.0.0:80
bind 0.0.0.0:443 ssl crt /etc/haproxy/certs/haproxy.pem
mode http
redirect scheme https if !{ ssl_fc }
acl host_wiki hdr(host) -i wiki.example.com
acl is_synchrony path_beg /synchrony
use_backend confluence-synchrony if host_wiki is_synchrony
use_backend confluence-web if host_wiki
backend confluence-web
mode http
option forwardfor
server confluence 127.0.0.1:8090 check
backend confluence-synchrony
mode http
option forwardfor
server confluence 127.0.0.1:8091 check