Regular Expressions (Regex) on Load Balancers?

Posted June 16, 2017 1.7k views
Load Balancing

Is it possible to use regular expressions on Digital Oceans Load Balancers? I currently use a droplet with HAProxy to achieve my goals but I would prefer if I could handle it outside of maintaining another droplet.

What I would like to do is forward a request to a specific droplet based on the URI.

Example: => Server 1 => Server 2

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @macman313

Yes, currently this functionality is not supported by the DO LB.

Would it be possible for you to use instead, where X is the api version?
Because what you’re asking for is not load balancing, it’s more of a routing functionality.

Otherwise you might want to look at CloudFlare or similar services, since they support page rules, where you can configure it to use a specific server with some urls.