Here is the situation... My IP is A.B.C.D and it is the servername of my httpd. Now I have 2 virtual hosts...
Code:
NameVirtualHosts A.B.C.D:80
NameVirtualHosts A.B.C.D:443
I put this in httpd.conf and I set it like this:
Code:
#Vhost1
<VirtualHost A.B.C.D>
ServerAdmin webmaster@mydom.com
DocumentRoot /var/htdocs
ServerName www.mydom.com
</VirtualHost>
#Vhost2
<VirtualHost A.B.C.D:443>
ServerAdmin webmaster@mydom.com
DocumentRoot /var/secure
ServerName secure.mydom.com
[and here I put other locations and entries for key and cert and etc]
</VirtualHost>
Now the problem is when I'm adding another secure VHost here, different domain (otherdom.com) with different key and cert, it gives error and say that the addr typed in the browser is not correct... the viewers get it... What can I do?? I acted here as the CA and then generated 3 certs for 3 sites... Please help...