Hi<br><br>I am trying to configure apache2 with gnutls so I can have 2 SSL secured virtual hosts (domains) using only 1 IP address.<br><br>For test purpose, I used <a href="http://dyndns.org/" target="_blank">dyndns.org</a> configuration until we remap our real web sites to the final configuration.<br>
<br>I have <a href="http://test1.dyndns.org/" target="_blank">test1.dyndns.org</a> mapping to a virtual host and <a href="http://test2.dyndns.info/" target="_blank">test2.dyndns.info</a> mapping to another virtual host.<br>
I use Ubuntu 10.04 and configured both virtual host under /etc/apache2/sites-available/test1-ssl and /etc/apache2/sites-available/test2-ssl. <a href="http://test1.dyndns.org/" target="_blank">test1.dyndns.org</a> has it's own certificate and <a href="http://test2.dyndns.info/" target="_blank">test2.dyndns.info</a> has it's own certificate.<br>
<br>Everything seems to works fine, the domain maps to the proper web
sites but for some reasons, the only one certificate is used. i.e. if I
hit <a href="http://test1.dyndns.org/" target="_blank">test1.dyndns.org</a> in firefox and display certificate information, the provided certificate is the one configured in <a href="http://test2.dnsdns.info/" target="_blank">test2.dnsdns.info</a>. In short, it seems like apache2 serves only 1 certificate not mater which domain name is served. <br>
<br>Is there any extra configuration required? I am missing something? <br><br>Any help would be appreciated. <br><br>There is a sample of my config:<br><br><VirtualHost *:443><br> ServerName <a href="http://test1.dyndns.org:443/" target="_blank">test1.dyndns.org:443</a><br>
GnuTLSEnable on<br> GnuTLSCertificateFile /etc/ssl/certs/test1.dyndns.org.crt.pem<br> GnuTLSKeyFile /etc/ssl/private/test1.dyndns.org.rsa<br> GnuTLSPriorities NORMAL<br> #DocumentRoot "/var/www/v1/public_html"<br>
...<br>(under this is my proxy-load-balancer configuration)<br><br><VirtualHost *:443><br> ServerName <a href="http://test2.dyndns.info:443/" target="_blank">test2.dyndns.info:443</a><br> GnuTLSEnable on<br> GnuTLSCertificateFile /etc/ssl/certs/test2.dyndns.info.crt.pem<br>
GnuTLSKeyFile /etc/ssl/private/test2.dyndns.info.rsa<br> GnuTLSPriorities NORMAL<br> #DocumentRoot "/var/www/v1/public_html"<br>...<br>(under this is my proxy-load-balancer configuration)<br><br>in /etc/apache2/ports.conf I have:<br>
<IfModule mod_gnutls.c><br> Listen 443<br> #Listen <a href="http://132.206.151.24:443/" target="_blank">132.206.151.24:443</a><br> NameVirtualHost *:443<br></IfModule>