Installing Apache Server

  1. Ensure that the Apache mod_ssl module is installed on your system by running the following command:
yum install mod_ssl
  1. Copy your SSL certificate file and the certificate bundle file to your Apache server. You should already have a key file on the server when you have generated your certificate request.

  2. Open the Apache configuration file in a text editor. Apache configuration files are usually found in /etc/**httpd. The main configuration file is usually named httpd.conf. In most cases, the blocks will be at the bottom of this httpd.conf file. Sometimes, you will find the blocks in a separate file in a directory like /etc/httpd/conf.d/.**

  3. Edit the virtual host entries in the /etc/httpd/conf.d/ssl.conf file to include the certificate files and virtual host information that each domain should use. For each virtual host, replicate the configuration shown below. Replace each mention of with your own domain.

<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/pki/tls/certs/ 
SSLCertificateKeyFile /etc/pki/tls/private/

SSLCACertificateFile /etc/pki/tls/certs/root-certificate.crt 
ServerAdmin [email protected]
DocumentRoot /var/www/html/
ErrorLog /var/log/httpd/
CustomLog /var/log/httpd/cinnox-demo.access.log combined

Save your configuration file.

  1. Restart Apache.
systemctl restart httpd

Did this page help you?