Question

How to setup load balancer for different subdomains?

I have my application installed on two subdomains:

a.my-site.com and b.my-site.com.

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 a.my-site.com and b.my-site.com?


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.

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:

https://www.digitalocean.com/community/tutorials/an-introduction-to-haproxy-and-load-balancing-concepts

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.