Hi there,

Is the port part of a HTTP header hostname? It looks like, because
depending on the frontend port I have to do something like this:

if { hdr(host) -i haproxy-rulez.net:8181 }
...if the frontend is bound to :8181

I'd prefer to just write
if { hdr(host) -i haproxy-rulez.net }
...no matter what port the frontend is bound to.

That way I wouldn't have to remember to change the port in the ACL if I
decide to change the frontend port. I know I probably could use hdr_beg
instead but I'd prefer a full hostname match.

Cheers

Reply via email to