title: HAProxy hdr_dom(host) -i can't detect subdomain.subdomain.domain.com
body: <p>Hi Im trying to route different domain names listening of the same port to different backend using acl in haproxy. How i have a problem when one of the domain names has two subdomains. So my frontend config looks like this</p>
  
  <pre><code>bind *:80
  mode http
  acl is_kibana_prod hdr_dom(host) -i kibana.domain.com
  acl is_kibana_nprod hdr_dom(host) -i non-prod.kibana.domain.com
  use_backend backend_kibana_prod if is_kibana_prod
  use_backend backend_kibana_nprod if is_kibana_nprod
  default_backend backend_default
  </code></pre>
  
  <p>When I make a request to bar.bar.bar.com the request goes to backend_foo. Can anyone help me on this? </p>
  
  <p>Actual logs:</p>
  
  <pre><code>172.17.0.1:54982 [21/May/2020:03:50:08.978] http backend_kibana_prod/kibanaprod 0/0/2/9/11 302 279 - - ---- 1/1/0/0/0 0/0 {non-prod.kibana.domain.com} "GET / HTTP/1.1"
  
  172.17.0.1:54982 [21/May/2020:03:50:08.989] http backend_kibana_prod/kibanaprod 0/0/0/32/37 200 85130 - - ---- 1/1/0/0/0 0/0 {non-prod.kibana.domain.com} "GET /login?next=%2F HTTP/1.1"
  </code></pre>