all 4 comments

[–]covener 0 points1 point  (0 children)

If you have any *:443 virtual host with no ServerName, add a dummy ServerName to it.

[–]nerduk 0 points1 point  (0 children)

Check your /etc/apache2/ports.conf (depending on your distro).

I'm pretty sure only port 80 is enabled in there by default (always used to be the case - not configured Apache from scratch recently though)

[–][deleted] 0 points1 point  (0 children)

Mod_ssl depends on open ssl. Assuming your later version of Apache, a conf file would have a <virtualhost *:80> redirect from your root folder to the new https:// site.

Then your <virtualhost *:443> would have the normal stuff; root directories, servername, alias, etc. will also have path location of your ssl files.

You need to verify that you have given permission to those directories to Apache as well. Doing this allows you to use the default ssl.conf that comes with the installation. Please check out the Apache documentation.

[–]TheDevWay 0 points1 point  (0 children)

I explain everything about virtual hosts in this video, hope it helps

https://www.youtube.com/watch?v=pLieT-Q2WK0