frontend api_gateway bind :443 ssl crt /etc/hapee-1.8/certs/cert.pem acl VHOST_publicapi req.hdr(Host) -i -m dom api.haproxy.com api.haproxy.fr acl VHOST_partnersapi req.hdr(Host) -i -m dom partner.haproxy.com partner.haproxy.fr acl PATH_catalog path_beg -i /catalog acl PATH_cart path_beg -i /cart acl PATH_inventory path_beg -i /inventory use_backend be_cart if VHOST_publicapi PATH_cart use_backend be_catalog if VHOST_publicapi PATH_catalog use_backend be_inventory if VHOST_partnersapi PATH_inventory backend be_cart server s1 10.0.0.3:80 backend be_catalog server s1 10.0.0.5:80 backend be_inventory server s1 10.0.0.7