[Zope] VHost logs.

seb bacon seb@jamkit.com
Sun, 3 Dec 2000 11:49:08 +0000


> > mod_rewrite is your friend.  You just make a Rule that redirects
> > anyone accessing your site on port 80 to port 443, something like
> > this:
> > 
> > <VirtualHost 123.123.123.123>
> >   ServerName www.foobar.com
> >   RewriteEngine on
> >   RewriteRule ^/(.*)	https://www.foobar.com/
> > </VirtualHost>
> 
> I don't want to force ALL access to port 443, only certain sections of 
> the site which require authentication to access.  I guess the above 
> still holds true (your correction in a later message is noted), I just 
> need to get more creative with my rewrite rules.  Thanks for the tip.

FYI, in these situations I put bits I want to enforce SSL on in a
folder called secure, and then do mod_rewrite variations on

  RewriteCond   %{REQUEST_URI}   ^/.*secure.*/
  RewriteRule   ^/(.*)           https://www.foobar.com/$1

seb