Configure SSL on Apache

The apache web server makes it possible to deploy secure web pages using ssl. In order to configure ssl on apache follow the below steps.

If your instance of apache was installed on a Red Hat base of linux using the standard repository, your apache base will most likely be /etc/httpd/. If not you’ll need to find your ssl.conf file usually in the conf.d directory of the apache base.

Your ssl.conf file will be used to configure ssl for apache.

Once you have found your ssl.conf edit the file and add the following information.

<VirtualHost <yourvirtualip>:443>
ServerAdmin [email protected]
DocumentRoot /var/www/html/
SSLCACertificateFile /etc/pki/tls/certs/<your_cert_chain>.crt
ErrorLog logs/ssl_error_log
LogLevel warn
SSLEngine on
SSLProtocol -ALL +SSLv3 +TLSv1
SSLCertificateFile /etc/pki/tls/certs/
SSLCertificateKeyFile /etc/pki/tls/private/
CustomLog logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

Restart your apache instance
service httpd restart