Apache SSL

Here is a non SSL apache virtual host.

To convert it to SSL VirtualHost, first change port to 443

Find

Replace with

Add above Directory entry

The resulting VirtualHost will look like

Enable mod_ssl

If you get following error

Invalid command ‘SSLEngine’, perhaps misspelled or defined by a module not included in the server configuration

You need to enable mod_ssl, to do this, run

On Debian/Apache, run

Restart Apache

Force SSL

You can add following code to apache virtualhost for the web site

ssl

apache

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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