diff --git a/templates/haproxy-cert.part b/templates/haproxy-cert.part
index a6b9fd94964a351c454e6248d54295965b4dad35..5e706c118cbd884fcdd08937c267ac9f7edb6b5c 100644
--- a/templates/haproxy-cert.part
+++ b/templates/haproxy-cert.part
@@ -1,4 +1,4 @@
 
 # %HOSTNAME%:
-    acl https_%HOSTNAME% req_end(host) -i %HOSTNAME%
+    acl https_%HOSTNAME% hdr_end(host) -i %HOSTNAME%
     use_backend %HOSTNAME% if https_%HOSTNAME%