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
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
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.