Mignonette Viado wrote:
>
> Hi,
>
> I'm trying to have 2 secure sites using IP-based virtual
> hosts. However, when i tried to access the sites using say
> https://www.site2.com it returns "Cannot find server or DNS
> Error". So i tried using https://site2_IP and it works okey.
> This is true for both secure sites. I look at all the logs
> but found no errors. So then, what should the DNS entry be?
> Below is my http.conf. Thanks.
**snip**
> ### Section 3: Virtual Hosts
>
> <IfDefine SSL>
>
> <VirtualHost site2_IP:443>
> DocumentRoot "/home/httpd/site2"
> ServerName www.site3.com
> ......................
> SSLCertificateFile /etc/ssl/certs/site2.crt
> SSLCertificateKeyFile /etc/ssl/private/site2.key
> </VirtualHost>
>
> <VirtualHost site3_IP:443>
> DocumentRoot "/home/httpd/site2"
> ServerName www.site3.com
> ......................
> SSLCertificateFile /etc/ssl/certs/site3.crt
> SSLCertificateKeyFile /etc/ssl/private/site3.key
> </VirtualHost>
>
> </IfDefine SSL>
This is obviously NOT an exact copy of your httpd.conf. But check
anyway, to make sure that you don't have www.site3.com listed twice.
However, it really sounds to me like a DNS problem. Check your config
in the DNS server. Do you have proper entries for both www.site2.com
and www.site3.com??? It doesn't sound to me like there's anything
wrong with you're Apache/SSL config, but that you've got the DNS
config wrong somehow.
-Bill
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]