By macman313
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:
api.site.com/v1/ => Server 1 api.site.com/v2 => Server 2
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @macman313
Yes, currently this functionality is not supported by the DO LB.
Would it be possible for you to use apiX.site.com/ 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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.