haproxy version 1.5.18
I want to redirect:
/document/(.*)/(.*)/somefile => /anotherPath/somefile
For example: redirect
/document/20181/20182/a_good_pic.jpg => /anotherPath/a_good_pic.jpg
How to do that with haproxy?
I retried follow the example for reqirep like:
# replace "/static/" with "/" at the beginning of any request path.
reqrep ^([^\ :]*)\ /static/(.*) \1\ /\2
But my example has two parts in URL path that are different to the example, so I got confused.
Thanks!