Answer the question
In order to leave comments, you need to log in
How to set up multiple frontends with different ssl certificates in haproxy?
If you need to set up multiple frontends on port 80, do it like this:
frontend http-proxy
bind *:80
mode http
acl web1 hdr_beg(host) www.website1.com
acl web2 hdr_beg(host) www.website2.com
use_backend http-web2 if web2
default_backend http-web1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question