im sure this question has been asked before, but i looked around and i
cannot find anything... so here goes, 

i have one virtualhost set up to use port 443, but for some reason if you go
to any of the virtualhost set up on port 80, via https it defaults to the
one host set up on port 443.

config:

Listen 1.2.3.4:80
NameVirtualHost 1.2.3.4:80

<VirtualHost 1.2.3.4:80>
   ServerAdmin blah@blah
   DocumentRoot /home/httpd/html
   ServerName www.blah.blah
   ErrorLog logs/blah-error_log
   TransferLog logs/blah-access_log
   <Directory "/home/httpd/html">
     AllowOverride AuthConfig
     Options Indexes Includes ExecCGI
     Order allow,deny
     Allow from all
   </Directory>
</VirtualHost>


<IfDefine HAVE_SSL>
Listen 1.2.3.4:443

<VirtualHost 1.2.3.4:443>
  ServerAdmin webmaster@otherdomain
  DocumentRoot /www/lotherdomain
  ServerName www.otherdomain.net
  ServerAlias otherdomain.net *.otherdomain.net
  ErrorLog /var/log/httpd/secure-otherdomain-errlog
  TransferLog /var/log/httpd/secure-otherdomain-access_log
  SSLEngine on
  SSLCertificateFile    /etc/httpd/conf/ssl.crt/www.otherdomain.net.crt
  SSLCertificateKeyFile /etc/httpd/conf/ssl.key/www.otherdomain.net.key
  AddType text/html .shtml .html
  AddHandler server-parsed .shtml .html
  <Directory "/www/otherdomain">
    Options Indexes Includes FollowSymLinks ExecCGI
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

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

Reply via email to