How to Configure SSL on httpd.include

 

 

1) Change directory into the conf folder for the website you're working with.  You path may vary slightly depending on how you've configured Apache but this should be a default configuration on most servers:

 

cd /var/www/vhosts/website-name.com/conf

 

2) Make a back up of the httpd.include

 

cp httpd.include httpd.include.bak

 

3) Edit the below template to match the path to your SSL certificates, httpdocs, logs, etc:

 

<VirtualHost IP-address-here:443>

        ServerName   website-name.com

        ServerAlias www.website-name.com

        ServerAdmin  "admin@yourwebsite.com"

        DocumentRoot /var/www/vhosts/website-name.com/httpdocs

        SSLEngine on

        SSLProtocol all -SSLv2 -SSLv3

        SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS"

        SSLCertificateFile /etc/ssl/certs/www.website-name.com/www.website-name.com.crt

        SSLCertificateKeyFile /etc/ssl/certs/www.website-name.com/www.website-name.com.key

        SSLCertificateChainFile /etc/ssl/certs/www.website-name.com/www.website-name.com_CA.crt

        Include /var/www/vhosts/website-name.com/conf/vhost.conf

 

        ErrorLog  /var/www/vhosts/website-name.com/statistics/logs/error_log

        CustomLog /var/www/vhosts/website-name.com/statistics/logs/access.log combined

 

        <Directory /var/www/vhosts/website-name.com/httpdocs/>

                AllowOverride All

 

#               Order Allow,Deny

               Allow from all

         </Directory>

</VirtualHost>

 

4) Paste this change section in httpd.include underneath the existing section for port 80 traffic and save

5) When ready for this change to go live you can restart Apache.