Regular Expressions (Regex) on Load Balancers?

June 16, 2017 445 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

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.

Have another answer? Share your knowledge.