All HowTo's Cybersecurity Redhat, Fedora and CentOS Linux Web Servers

Minimal Apache SSL Configuration (Redhat)

This document shows the minimal information you need to have a working Apache server serving HTTPS requests. It’s typical to put your configuration files in (when using Redhat) “/etc/httpd/conf.d/”. We’re using certificates supplied to us and not self signed certificates.

<VirtualHost *:443>
 LogLevel warn
 SSLEngine on
 SSLCertificateFile /etc/httpd/keys/
 SSLCertificateKeyFile /etc/httpd/keys/
 SSLCertificateChainFile /etc/httpd/keys/keysupplier.crt

 DocumentRoot "/var/www/html/ssldomain/public"

 <Directory "/var/www/html/ssldomain/public">
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny
 allow from all


You should always test your configuration with the following command:

apachectl -t

And restart apache with:

service httpd restart

Leave a Reply

Your email address will not be published. Required fields are marked *