I am using HA-Proxy version 1.5.11 2015/01/31
In my config i have a line that looks like:
http-request redirect location %[capture.req.uri,map(/etc/haproxy/redirects.map)] code 301 if { capture.req.uri,map(/etc/haproxy/redirects.map) -m found } { hdr$ { hdr(host) -i mysite.com }
the redirects.map file looks something like:
/oldurl/ /newurl/
Is there anyway to do regular expressions in this map file? something like:
/(en|sp)/oldurl/ /1/newurl/
The redirect map does work on a 1to1 bases and does work now. Just trying to add regular expressions to the matches to cut down on the size of the map file.