How to setup load balancer for different subdomains?

I have my application installed on two subdomains: and

The applications that I want the load balancer to work for runs on port 9650, however I have setup a reverse proxy on both droplets to hide the port.

How do I let my load balancer alternate between and

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Site Moderator
Site Moderator badge
November 3, 2022

Hi @736980700a984952b2ee74f3be0f0,

First, what type of loadbalancer are you using? If you haven’t decided then I’ll suggest you to check the following tutorial:

Once you’ve decided on the load balancer you’ll be using I’ll be able to provide you with more steps to achieve what you are aiming at.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up