httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Pratt <>
Subject Re: [users@httpd] Vitualhosts ssl and apache2
Date Wed, 02 Aug 2006 14:32:45 GMT
Hi Vincent, ok - I am trying something else that I have partially 
working but I need something to fix my regex to catch to domain 
properly. So may have need a RewriteCond that can compare domain name 
coming in.

Here is what I have got so far but since my regex is not right for 
domains - it moves on to the last RewriteRule that I have set up which 
places it in the zope root - but good thing is that ssl works properly. 
So I need a proper regex that will catch the domain so it will land on 
the right rewrite rule. Many thanks.


<VirtualHost *:443>
   RewriteEngine On
   RewriteRule ^.*mydomain\.com/(.*)$1 
   RewriteRule ^.*mydomain1\.com/(.*)$1 
  RewriteRule ^/(.*){HTTP_HOST}:443/++/$1 [L,P]

   SSLEngine on
   SSLCertificateFile /usr/local/etc/apache2/ssl.crt/self_signed.cert
   SSLCertificateKeyFile /usr/local/etc/apache2/ssl.key/self_signed.key
   SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire
   <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

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