So I'm happily using HAProxy to load balance 2 web servers serving a single service. Now I need to add 5 more web servers that will respond to 5 different hostnames and I need to use the same frontend as above.
I tried to use ACL with no luck.
I have a test client with hosts file compiled with all hostnames pointing at haproxy and i used something like the following in the frontend:
acl hw1 hdr_beg(host) -i hw1.test.lan use_backend back_hw1 if hw1
Then I set a
back_hw1 backend server but it never seems to match and I get "no response from server" when I try.
All web servers use HTTPS and I correctly set SSL in HAProxy when I setup the first service.
Thanks for any help.