I have a great working Linode server with single IP and multiple domains - vhosts.
However, I need SSL for only one virtual host.
Configuration samples below for my-ssldomain.com (which is supposed to work with SSL) and my-nossldomain.com (one of the other domains which has nothing to do with SSL).
# my-ssldomain.com.conf
Code:
<VirtualHost *:443>
SSLEngine on
ServerName my-ssldomain.com
...
</VirtualHost>
# my-nossldomain.com.conf
Code:
<VirtualHost *:80>
ServerName my-nossldomain.com
...
</VirtualHost>
https://my-ssldomain.com works as expected.
http://my-nossldomain.com works as expected.
https://my-nossldomain.com is not desired to be working, however it works unintentionally and first tries to load my-ssldomain.com's SSL certificate with a warning of course and if I select Continue then it opens my-ssldomain even it still shows
https://my-nossldomain.com in the address bar.
I know that additional IP would solve this problem but I am trying to find single IP solution if any. If it is the only way then I would go that direction. But I have to make sure that Apache couldn't handle this.
Just to note: SSL is a self-signed cert which I am using for client authentication for an in-house web application. It doesn't matter but just in case, this is the setting.
Thank you in advance, for even reading.