Mobile app version of vmapp.org
Login or Join
Heady270

: Running my site using https and a load balancer I currently have two webservers behind a load balancer that are running my websites. I'm considering buying an SSL certificate for one of my

@Heady270

Posted in: #Https #LoadBalance #Virtualhost

I currently have two webservers behind a load balancer that are running my websites. I'm considering buying an SSL certificate for one of my websites and converting it to https. What mechanics to I need to considerer as far as IP addresses and load balancing go?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Heady270

2 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

I have this working two different ways for two different sites now.


Install the certificate on each of the servers behind the load balancer. The load balancer accepts requests on port 443 and forwards them to the web servers unmodified. The responsibility for the encryption rests at the web server level.
Install the certificate on the load balancer itself. It accepts requests on port 443, handles the encryption and then makes unencrypted requests to the web servers on port 80.


As others have stated, it depends on the capabilities of your load balancer. When the load balancer can handle the encryption, it is very convenient to let it do so.

10% popularity Vote Up Vote Down


 

@Jamie184

You can use nginx as a load balancer and configurate it to correctly handle the server certificates just as normally would happen.

All the configurations are explained in www.cyberciti.biz/faq/howto-linux-unix-setup-nginx-ssl-proxy/ Instead of using the self-signed certificates, a purchased one can be used.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme