Regular Expressions (Regex) on Load Balancers?

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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.