HAProxy: HTTP And HTTPS For Multiple Domains And Backends

Fri, Apr 2, 2021 | 500 Words

If you’ve got a single ingress IP, perhaps a NAT situation with various services behind a router on a private network, and you want to route different domains to different backends, you can do it with HAProxy. If you want to use HTTP and HTTPS without using SSL termination on the HAProxy host that’s possible too and what we’ll explore here. What you will need is: One host with HAProxy, with all TCP traffic on ports 80 and 443 being routed to it.