-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HAPROXY multiple context based routing not working #1
Comments
There are few thing you're confusing them.
if from your browser you are directly making a call
|
As per your code snippet request with /app1 works fine but /app2 doesnt since when request comes it matches the host with /app1 filter & failed. It never go and match the regex with second acl filter because of same host. |
try this
|
Thanks for responding! I have tried this already but it is asking for username and password after adding this when i hit the url. This looks strange to me as i have not enabled security here. Will HAProxy version matters since i'm using 1.8.1? |
Not sure but previously it wasn't working because you shouldn't put conditions in |
Ok. I will check it and thanks for your help!! |
Im having below haproxy configuration to route two urls based on context path. But during my testing found that app1 is always working fine and app2 is not working but routed to app1 itself.
Using reqirep to ignore the context path while routing to application (this is needed by my application)
From browser i will call like,
http://test.com/app1 should be routed to app1
http://test.com/app2 should be routed to app2
Any help would be appreciated?
The text was updated successfully, but these errors were encountered: