Saturday, 12 September 2015

How to manually edit the httpd.conf in cPanel to change the Document Root for configuring SSL certificate for a sub domain?

I have faced this issue after installing an SSL certificate for a sub domain ( The certificate was correctly installed but it is redirecting to default cPanel page. On further inspection I found out that it was because the Document Root of the https (SSL) version of the is set to default /usr/local/apache/htdocs .

How to fix this issue? If we edit the DocumentRoot in /usr/local/apache/conf/httpd.conf for the and then running

How to configure HA Proxy Load Balancer for HTTPS connections by SSL forwarding and without using SSL termination?

Here I'm showing how to configure ha proxy for https connection. How ever, this is not showing ssl termination at load balancer end. Here the load balancer will listen for https connections on port 443 and forward them to web01 and web02 servers to 443 port.

Pre-requisite is that you need to install SSL certificates on web01 and web02 servers.
If you are using cPanel server like me, you can generate the ssl certificate on web01 server and install it there.Then copy paste the private key, cert and ca bundle on web02 server to install it there too.