Configuring SSL with multiple domains on same IP?
I want to configure SSL (I'm going to install and use OpenSSL) to work with only one of my virtual hosts. Specifically a sub domain.
So I want the 3 other domains currently hosted on this same server and IP to remain http://
I also want the top domain
but I want the sub domain to be
Does this require creating and using an .htaccess file for my subdomain due to having multiple virtual hosts on the same IP? Or can I configure settings for multiple virtual host domains through the main httpd.conf file(mine is currently blank)? Or should this be configured through the apache2.conf file?
Also in my apache2.conf file I don't see a
Should I also be setting up Server Name Indication (SNI) at this point in case I want to use different SSL certs on the different sites I'm hosting in the future?
Do I also need to edit my virtual host config file found in my apache2 sites-available directory so in this case my sub.mydomain.com.conf file? I have the sub domain set up as it's own virtual host at this point and so it's basically set up exactly like the other top domains.
What is the default-ssl file that is in my sites-available directory? Is that something I should be using when setting up SSL?