I am trying to use the query string in the client’s request as component for an ACL but cannot get it to work.
My goal is to create an ACL that will only match if the the URL does not contain a a query string.
Using 1.7.1 I’ve tried to use the “query” paramter described here: https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#7.3.6-query
Something along the lines of
acl has_sq query -m found
I’ve also tried to work with the “urlp” parameter but no avail. I’ve tried a dozen of combinations but the ACL just never seems to match.
Can anybody point me at what I am doing wrong or has a working example?