Hi!
I’ve read this great tutorial (https://www.digitalocean.com/community/tutorials/how-to-use-haproxy-to-set-up-http-load-balancing-on-an-ubuntu-vps) and have got it working nicely for HTTP, but not for HTTPS which has been implemented in the latest version of HAProxy.
Does anyone have a working solution to share?
Thanks in advance!
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!
You need to add a second bind directive to your HAProxy frontend:
bind :443 ssl crt /path/to/site.pem
The PEM file can be created by copying the contents of the certificate and then the key into it, like this:
cat site.crt site.key > site.pem
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.