Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Rewrite works, but then the wrong backend is used

$
0
0

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?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>