httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taylor Dondich <>
Subject [users@httpd] UPDATE: Re: [users@httpd] Apache2 w/ SSL and mod_vhost_alias, can this be done?
Date Mon, 22 Dec 2003 17:53:55 GMT
Well, I've further looked into the problem, and here's what I can tell.

When I have only 1 ip address on my server, and apache2 running on it, 
with Listen 80 in httpd.conf with mod_vhost_alias running, and then 
Listen 443 in ssl.conf with a virtualhost definition like this:


#  General setup for the virtual host
DocumentRoot "/virtuals/"
ErrorLog /var/log/httpd-error_log
TransferLog /var/log/httpd-access_log
SSLEngine on

SSLCertificateFile /usr/local/etc/apache2/ssl.crt/

<Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
<Directory "/usr/local/www/cgi-bin">
    SSLOptions +StdEnvVars

SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0


Everything works.  But as soon as I put another ip address on the same 
network card (same subnet), then change the VirtualHost entry to have 
that ip address, I get Invalid Request error when trying to pull up the 
ssl site.

Any ideas?


Brian Dessent wrote:

>Taylor Dondich wrote:
>>I'm using Apache2 with it's SSL usage.  I am using mod_vhost_alias for
>>dynamic virtual hosts.  However, I need to setup virtual hosts with SSL
>Name-based virtual hosts and SSL don't mix.  It's a fundamental
>limitation.  Each SSL vhost must be on a unique ip:port combination.
>(I can't tell if that's your problem or not, but when you mention
>virtual hosts and SSL the issue comes to mind.)
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message