503 on load balancer through HTTPS. HTTP works fine.

June 16, 2019 283 views
Load Balancing DNS Ubuntu

I have an HTTP server running on port 8080 of a droplet. I have a load balancer pointing at this droplet.

Here is the configuration in the load balancer:

Load Balancer      Droplet
HTTP on port 80    HTTP on port 8080
HTTPS on port 443  HTTP on port 8080

I have SSL redirect turned off.

If I do a curl on my http://domainname/, I get a valid response back. If I try https://domainname/, it hangs for 20s, but eventually I get a 503.

Does anyone have any suggestions?

1 comment
1 Answer


Have you configured a port for SSL on the Droplet(not the load balancer)? If yes, you should use that for the HTTPS connection from the load balancer.

Usually in these cases, you can use port 8080 on the droplet for HTTP connections and 8443 for HTTPS connections. Of course you need to open the mentioned port and configure your Load Balancer so that I knows what InstancePort and Protocol it should use.

If you are experiencing difficulties, post the configuration files here so that I can give you a more in depth advice.

Have another answer? Share your knowledge.