we are upgrading haproxy fleet from v1.8.14 to v2.1.4，But we can’t start haproxy：
The ‘reqrep’ directive is not supported anymore since HAProxy 2.1. Use ‘http-request replace-path’, ‘http-request replace-uri’ or ‘http-request replace-header’ instead.
So we decided to ditch reqrep and in that process the same regex that was working with reqrep is not working with the http-request replace-uri.
We got 404 not implemented on from our backend server. But on older version 1.8 it’s working as it should.
#reqrep ^([^\ ]\ /)api/rdc[/]?(.) \1api/\2
http-request replace-uri ^([^\ ]\ /)api/rdc[/]?(.) \1api/\2
What are we doing wrong?