I am trying to redirect from a URI of pattern /images/image.png?1234567 to a
URI of format /i/1234567
The rules I have are as following:
acl acl_legacy_img url_sub img.png
use_backend legacy_img if acl_legacy_img
The backend cofig is as following:
backend legacy_img
reqirep ([^\ ]*)\ /img.png?id=(.*) /i/\2
server server_img localhost:8080
However I consistently get 404 errors from browser and curl'd requests. I am
running haproxy in the debug mode, however I don't see any further debug
messages that'd help me in debugging this issue. I'd appreciate any pointers as
to what is wrong in the regular expression for the backend rule.
Thanks
Sriram