Load Balancing a http and https enabled site with Apache and Ubuntu
If you are a web developer and want to add SSL feature for the security reason, i bet that you will not set the SSL to all the pages on your website. Why? because it is SO SLOW!!
By using SSL , it means that the traffic between the client and server is encrypted and causing the bigger data transfered than without one. So, many of the developers will apply the SSL feature on specific places that need protection such as settings and message feature and then switch back to http when it comes to the page that doesn't need to be protected.
Everything looks nice and clean until you need to load balance your site because of the increasing of the traffic. Yes, load balance means you need more than one server. And if you manage more than one server , it means that you need to do something with your SSL certificate that you already have for one domain only. That's not the only problem, as we know some big guy out there like Rackspace has Load Balancing as their service but it can not manage multiple ports ( 80 + 443 ) at once. So, what do you have to do?
Lets make one! :)
In this tutorial, i assume that you are already familiar with Linux Server.
- Install Apache server
- Enable modules needed
- Comment out the content of /etc/apache2/sites-available/default
- Edit the /etc/apache2/httpd.conf
- Restart the Apache server and voila!