I had a similiar configuration scenario and also encountered the same
problem with one SSL Vhost and numerous non-SSL Vhosts.
I fixed it by separating the IP address of the SSL Vhost from the IP Address
of the other Vhosts and also placing the NameVirtualHost directive below the
SSL Vhost in the config file. I can't fully explain why but I played with it
and it seemed to work. Example:
SSLDirectives
<VirtualHost IPaddress1:80>
Stuff
</VirtualHost>
<VirtualHost IPaddress1:443>
SSLStuff
</VirtualHost>
NameVirtualHost IPaddress2:80
<VirtualHost IPAddress2:80>
ServerName other.domain1.com
</VirtualHost>
<VirtualHost IPAddress2:80>
ServerName other.domain2.com
</VirtualHost>
etc...
Hope this helps,
Phil Deacon
[EMAIL PROTECTED]
----- Original Message -----
From: "LeRoy C. Miller III" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 18, 2000 12:37 PM
Subject: Namebased Virtual Domains and ModSSL
> I am having a problem with name based virtual domains under apache 1.3.12
and
> Modssl 2.6.2-1.3.12. When I setup my virtual domains under apache,
without
> modssl installed they all worked nicely, one big happy family if you will
:)
> now that modssl is installed though it would appear I can only have one
name
> based virtual domain (non ssl) and one name based ssl domain (I know for
the
> ssl domains that's the limit chicken egg etc.) but shouldn't I beable to
keep
> the other domains that were name based and NOT SSL ?
>
> Here's how my config looks when it works (1 and 1)
>
> <VirtualHost _default_:80> /* Note the default. ;( */
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot "/usr/local/apache/webpages/ansic/cc"
> ServerName server.ansic.net
> ErrorLog logs/ansic/cc/error.log
> CustomLog logs/ansic/cc/access.log combined
> </VirtualHost>
>
> SSL Stuff
>
> <VirtualHost _default_:443>
> # General setup for the virtual host
> DocumentRoot "/usr/local/apache/htdocs"
> ServerName cc.ansic.net
> ServerAdmin [EMAIL PROTECTED]
> ErrorLog /usr/local/apache/logs/error_log
> TransferLog /usr/local/apache/logs/access_log
> Engine on etc. etc
> <end of vdomain>
>
> With this config and all other vhosts commented out, both ssl page and
non-ssl
> page work.
>
> Now when I add other domains
>
> <VirtualHost 199.224.77.141>
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot "/usr/local/apache/webpages/ansic/gcc"
> ServerName gcc.ansic.net
> ErrorLog logs/darkphiber/www/error.log
> CustomLog logs/darkphiber/www/access.log combined
> </VirtualHost>
>
> and change the _defualt_:80 to the IP, ONLY the NON-SSL Servers work
> and the SSL Server cuases the brower to time out waiting for the Server to
> respond.
>
> ANY help would greatly be appreciated. I read the mailing list archives
for
> about an hour and from what I saw my config (chaing the defualts') was
correct
> but obviosly not.
>
> Thanks in advnace
>
> LeRoy
>
> LeRoy C. Miller III
> Network Administrator ANSIC Networks
> Email: [EMAIL PROTECTED]
> Phone: 610-681-6504
> Whois NIC: LM4772
> http://www.ansic.net <not fully functional yet>
> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl) www.modssl.org
> User Support Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]