Apache SSL Installation Instructions

  1. Upload the SSL file in Apache folder which you downloaded from your account to /etc/ssl/.
  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 <VirtualHost> blocks will be at the bottom of this httpd.conf file. Sometimes you will find the <VirtualHost> blocks in a separate file in a directory like /etc/httpd/vhosts.d/ or /etc/httpd/sites/ or in a file called ssl.conf.
  3. If you need your site to be accessible through both secure (https) and non-secure (http) connections, you will need a virtual host for each type of connection. Make a copy of the existing non-secure virtual host and change the port from port 80 to 443.
  4. Edit your configuration file accordingly, make sure the IP is your own server's IP and the domain names are your own domain names.
    DocumentRoot /var/www/website
    ServerName domainname www.domain.com
    SSLEngine on
    SSLCertificateFile /etc/ssl/domain.crt
    SSLCertificateKeyFile /etc/ssl/domain.key
    SSLCertificateChainFile /etc/ssl/CA-chain

  5. You can change the names of the files and paths to match your needs.
  6. Save the changes and exit the text editor.
  7. Restart your Apache web server.
  • SSL, Apache
  • 333 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install Certificates on Tomcat KeyStore

Convert .PFX to JKS Keystore for Tomcat Server. Using the pfx file in the IIS folder from your...

Some random codes on Apache Reverse Proxy

Check the following codes in case your Reverse Proxy not working properly: Header set...

How to add or change Reverse Proxy in aaPanel?

Log into your aaPanel, go Website>Reverse Proxy>Config do as the following to add a...

Nginx SSL Installation Instructions

In Nginx webserver will the files in NGINX folder be used. Upload the 2 files into /etc/ssl/...

How to deploy SSl certificate in aaPanel?

Once your SSL issued you can easily deploy it on aaPanel. If you don't know how to get your...