I'd like to redirect subdomains in a generic way like this: acme.example.com -> acme.example2.com
I tried this: redirect prefix http://%[hdr(host),field(1,'.')].example2.com code 301 unless { hdr_end(host) -i .example2.com } but haproxy 1.6 doesn't like the %[hdr()] notation in this location. Is there a way to achieve this? Cheers Ari -- --------------------------> Aristedes Maniatis CEO, ish https://www.ish.com.au GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
signature.asc
Description: OpenPGP digital signature

