diff --git a/templates/haproxy.cfg.j2 b/templates/haproxy.cfg.j2
index 87031a8..43c4443 100644
--- a/templates/haproxy.cfg.j2
+++ b/templates/haproxy.cfg.j2
@@ -83,7 +83,7 @@ frontend http
     # HSTS (63072000 seconds)
     http-response set-header Strict-Transport-Security max-age=63072000
 {% if docker_swarm_cluster_portainer_install %}
-    acl portainer_srv hdr_dom(host) -i {{ docker_swarm_portainer_hostname }}
+    acl portainer_srv hdr(host) -i {{ docker_swarm_portainer_hostname }}
 {% endif %}
 {% for srv in docker_swarm_haproxy_additional_services %}
     acl {{ srv.acl_name }} {{ srv.acl_rule }}