How to Configure SSL Certificate in Apache Web Server

Apache is an open source web server software. It is the most popular web server software in use today, supporting over 70% of websites on the internet.

Apache was originally developed by Brian Behlendorf, who wanted to create a free and open source alternative to Microsoft’s IIS web server software. Apache was initially released as open-source software in 1995 and has since been downloaded more than 10 million times.

This article will show how you can enable ssl on you Apache web server container.

ServerAdmin [email protected]
DocumentRoot /var/www/html/
<Directory "/var/www/html/">
Options FollowSymLinks MultiViews
AllowOverride All #Allow from all 
<Directory "/var/www/html/">
<Files "*.php">
Order Deny,Allow Deny from All
ErrorLog logs/domain.com_ssl_error.log 
TransferLog logs/domain.com_ssl_access.log
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
SSLProtocol -SSLv2 -SSLv3 +TLSv1 +TLSv1.1 +TLSv1.2
SSLHonorCipherOrder on 
SSLCertificateFile /etc/httpd/ssl/ 
SSLCertificateKeyFile /etc/httpd/ssl/ 
SSLCertificateChainFile /etc/httpd/ssl/ 
SSLCACertificateFile /etc/httpd/ssl/bundle.crt
# cat COMODORSADomainValidationSecureServerCA.crt AddTrustExternalCARoot.crt >>
# cat COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt >
# mv
# cp -rp /etc/httpd/ssl/
# cp -rp /etc/httpd/ssl/
# cp -rp /etc/httpd/ssl/

Leave a Comment