HAProxy - only allow traffic if known domain
Cadish last edited by
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!
PiBa last edited by
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.