Possible Duplicate:
Multiple SSL domains on the same IP address and same port?
I am trying to setup SSL certificate for my two domains on one apache web server. I do have two certificated for my two domains.
I have created two virtual hosts for my two domains :
<VirtualHost *:443>
NameVirtualHost *:443
ServerName domain1.com
...
..
SSLCertificateFile /etc/pki/tls/certs/domain1.cer
SSLCertificateKeyFile /etc/pki/tls/private/domain1.pem
..
</VirtualHost>
<VirtualHost *:443>
NameVirtualHost *:443
ServerName domain2.com
...
SSLCertificateFile /etc/pki/tls/certs/domain2.cer
SSLCertificateKeyFile /etc/pki/tls/private/domain2.pem
..
..
</VirtualHost>
The SSL certificate loads up and show valid certificate for domain1, but on visiting domain2, it loads up the domain1 certificate only.
What more changes do i need to do for this to work?