Hello!

 Is it possible to use mod_ssl with name-based virtual hosts? I'm trying to
 do such thing: there are many virtual hosts, but only few should use SSL.
 I make such config for Apache-1.3.9:

 SSLEngine off
 ... other SSL-related directives ...

 NameVirtualHost x.x.x.x

 <VirtualHost x.x.x.x>
  ServerName server.name
  ...
 </VirtualHost>

 ...

 <VirtualHost _default_:443>
  SSLEngine on
 </VirtualHost>

 In such configuration Apache starts, but Netscape infinitely waits for
 result of https request. If stop connect, Apache logs in ErrorLog:

        [client 212.109.32.15] Invalid method in request  +

 Note, that using SSLRequireSSL in _default_ entry, Apache says:
 
 Syntax error on line 625 of /usr/local/www/conf/httpd.conf:
 SSLRequireSSL not allowed here
 
 When I'm trying to use

 <VirtualHost x.x.x.x:443>
  ServerName server.name
  SSLEngine on
 </VirtualHost>

 instead of _default_ entry, Apache logs:

 VirtualHost x.x.x.x:443 -- mixing * ports and non-* ports with a
 NameVirtualHost address is not supported, proceeding with undefined
 results

 Can anybody suggest, what I need to do for successfull results? Full
 verion of Apache is:

 Apache/1.3.9 (Unix) mod_ssl/2.4.2 OpenSSL/0.9.4 PHP/3.0.12 rus/PL28.19

 Thank you.

-- 
doka

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

Reply via email to