frontend http_host
bind *:80
reqadd X-Forwarded-Proto:\ http
redirect scheme https code 301 if { hdr(host) -i secure.himran.com } !{ ssl_fc }
# Hosts List
acl host_secure hdr(host) -i secure.himran.com
acl host_static hdr(host) -i static.himran.com
acl host_patch hdr(host) -i patch.himran.com
# Use backend for matched host
use_backend http_host_secure if host_secure
use_backend http_host_static if host_static
use_backend http_host_patch if host_patch
# Default for un-match host
default_backend http_host_static