HAProxy - only allow traffic if known domain
-
Hi,
Anyone can help me setting up HAProxy to only allow traffic if the domain is known? So far, HAProxy works, but also if I just enter my external IP address, followed with the port. I would like it to work only when connecting to https://mydomain.com:8080
Thanks in advance!
Hadewin -
You could add acl's that check for the proper domainname and reject requests otherwise. Or add strict-sni to the ssl options so that the requested domain must match your certificate.