Using HAProxy, I want to create the following setup:
- All requests except root (/), /articles and /blogs go to server1
- All requests for root (/), /articles and /blogs go to server2
I can't figure out how to match root without relying on setting the default server, which then negates the all requests go to server1 rule.
How can I express the above using HAProxy?
A regex may be the solution to this, but I'm not great with regex so it has been difficult to come up with a solution based on it.