Saturday, July 16, 2022
HomeWordPress DevelopmentThe right way to set up SSL on apache

The right way to set up SSL on apache


Steps to put in SSL on apache

Navigate to Apache configuration information

/and many others/httpd/conf
Enter fullscreen mode

Exit fullscreen mode

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>
Enter fullscreen mode

Exit fullscreen mode

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
Enter fullscreen mode

Exit fullscreen mode

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
Enter fullscreen mode

Exit fullscreen mode

Fireplace under command

yum set up mod24_ssl 
Enter fullscreen mode

Exit fullscreen mode

After this command once more restart your apache server.
That is all :).

Now your area will work with HTTPS.

set up SSL on nginx

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments