I was trying to setup multiple sites for my servers. I noticed that when
I use the ssl entry the certificate that is used is the first one in the
list.
>From reading thought the mailing list I have found that this is not
supported! Is this right.??? It seems that the only side effect is that
you will receive
the wrong certificate, but everything else works as expected.
    Has anyone figured out a work around?? I would like to hear how
others have solved this problem.

Here is a sample of what my vhost entries look like.

<VirtualHost thisserver:80>
        ServerName site1
        DocumentRoot /home/site1
</VirtualHost>

<VirtualHost thisserver:443>
        ServerName site1
        SSLEngine On
        SSLCertificateFile /certs/www.site1.crt
        SSLCertificateKeyFile /certs/www.site1.org.key
        DocumentRoot /home/site1
</VirtualHost>
<VirtualHost thisserver:80>
        ServerName site2
        DocumentRoot /home/site2
</VirtualHost>

<VirtualHost thisserver:443>
        ServerName site2
        SSLEngine On
        SSLCertificateFile /certs/www.site2.crt
        SSLCertificateKeyFile /certs/www.site2.key
        DocumentRoot /home/site2
</VirtualHost>
<VirtualHost thisserver:80>
        ServerName site3
        DocumentRoot /home/site3
</VirtualHost>

<VirtualHost thisserver:443>
        ServerName site3
        SSLEngine On
        SSLCertificateFile /certs/www.site3crt
        SSLCertificateKeyFile /certs/www.site3.key
        DocumentRoot /home/site3
</VirtualHost>
<VirtualHost thisserver:80>
        ServerName site4
        DocumentRoot /home/site4
</VirtualHost>

<VirtualHost thisserver:443>
        ServerName site4
        SSLEngine On
        SSLCertificateFile /certs/www.site4.crt
        SSLCertificateKeyFile /certs/www.site4.key
        DocumentRoot /home/site4
</VirtualHost>

Thanks for the help

David Strohmeyer


______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to