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

ssl

apache