DigitalOcean Load Balancer and Nginx

Hello, I have two droplets each of them has Nginx running on it on port 80 as a reverse proxy for a Node JS application running on port 3000. If I access any of these droplets by port 80 or 3000 it responds successfully. I added a DigitalOcean load balancer in front of these two droplets yet its status is down and it sees the two droplets as down too. I tried that for both ports 80 and 3000 for the rule and health check URL.

Did you face such issue and do you have any recommendations to fix that?


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.

Do you see the health checks in your nginx logs? Are the health checks generating an error? That is where I would start with this.

Also, try visiting your site using your domain name, and also by IP only. Does it work in both cases?