HA Proxy - change backend based on URL not working (for me)
-
Hello.
Let's see if someone can help me.
As the subject, I have 2 backends I want to use based on the URL
First is host matches:
Second is same host but I want to test an URL parameter to use another backend.
This is the configuration and actions are:
I am becoming crazy, because it doesn't work in any parameter, trying every parameter and changing the criteria.
Does someone see what is happening?
Some light will illuminate my soul (and let me go to have a saturday walk)Thank you.
KR -
@crester
The ACL looks somewhat odd.
You did state a parameter name. Without a parameter name an URL parameter ACL might be quite useless.
And you have "Not" checked. So the matching is inverted. -
@viragomann Thank you for your tips.
I have been testing few things (even removing the unseen "NOT") and it still does't work for me
i.e just a simple rule to detect the origin IP and redirect to a backend doesn't work in my sideThank you
-
@crester
The Not is subordinate in this ACL.
You have configured an ACL to match an URL parameter. Is this really what you want at all? Since you didn't state any parameter name, I'm not sure in this.