Steps to put in SSL on apache
Navigate to Apache configuration information
/and many others/httpd/conf
Right here you’ll get httpd.conf file. To begin with, it’s important to set the file permission to edit the file. After that, it’s important to create a brand new digital directive into it. open your httpd.conf file and replace the under code on the finish of the file.
instance how you can set up SSL on apache.
<VirtualHost *:443>
ServerName www.yourdomain.com
DocumentRoot YOURDOCUMENTROOT
SSLEngine on
SSLCertificateFile Path to certificates file
SSLCertificateKeyFile Path to key file
</VirtualHost>
Within the Above code exchange your area title and certificates file paths.Save the above file and restart the apache by command.
Sudo service httpd restart
After restarting the server chances are you’ll face under listed error
Beginning httpd: AH00526: Syntax error on line 356 of /and many others/httpd/conf/httpd.conf:
Invalid command 'SSLEngine', maybe misspelled or outlined by a module not included within the server configuration
Fireplace under command
yum set up mod24_ssl
After this command once more restart your apache server.
That is all :).
Now your area will work with HTTPS.