Report this

What is the reason for this report?

503 on load balancer through HTTPS. HTTP works fine.

Posted on June 16, 2019

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?



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!

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.

Hello,

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.

I am experiencing similar problems. My current load balancer settings are as follows:

http on port 80 -> http on port 80 https on port 443 -> http on port 80

I’m using Let’sEncrypt certificate. My subdomains point to my load balancer IP.

Inbound rules for firewall have been open for port 443 and port 80.

Any advices is appreciated.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.