REG-TESTS: map_redirect: Don't use hdr_dom in ACLs with "-m end" matching method
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Sep 2025 13:37:50 +0000 (15:37 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Oct 2025 14:48:34 +0000 (16:48 +0200)
commitb3b742dfc4ab87f395bea98b3cc31cf0b4b12f91
tree0658f34926c04ebf75dbfd14b2876ecd16b2c006
parentb14c4ffd6b992ba1915673b8cd0c48a278fccfce
REG-TESTS: map_redirect: Don't use hdr_dom in ACLs with "-m end" matching method

hdr_dom() is a alias of "hdr() -m dom". So using it with another explicit
matching method does not work because the matching on the domain will never
be performed. Only the last matching method is used. The scripts was working
by chance because no port was set on host header values.

The script was fixed by using "host_only" converter. In addition, host
header values were changed to have a port now.

(cherry picked from commit d09d7676d024f12a92390d7589895a2c4bae8e2b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit ec64dcd295b0aaae77a8dcc840978266256edad4)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 5ff7dde86be5c759976c79c98710890e59c666c7)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
reg-tests/http-rules/map_redirect.vtc