This is my query:
wget -O- -nv http://10.231.0.88/erech/contactYehaa
And this is my config:
frontend api
bind 10.231.0.88:80
acl myacl url_beg -i /erech/contact
http-request replace-path ^/erech/contact(.*) /rest/api/submit-job/contact\1 if myacl
use_backend foo if myacl
default_backend bar
backend foo
server foo 10.231.0.88:8900 check
backend bar
server bar 10.231.0.88:8901 check
The rewrite works, but i end up on the bar backend. I would expect the rewrite to work and ending up on the foo backend.
Any idea what the problem could be?