I am no expert in apache rewrite rules so I cant really help with those questions. I might add that the rules I send you are not run in a directory and are the only rules I use on the virtual host (appart from logging and ServerName). I don't set a DocumentRoot I just pass every single request through to Zope and do all the rest with SiteAccess Rules etc. Tom => -----Original Message----- => From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jim => Penny => Sent: Wednesday, 13 June 2001 7:04 AM => To: tomc@evetcia.com; zope@zope.org => Subject: Re: [Zope] Apache, mod_rewrite, https working together? => => => On Tue, Jun 12, 2001 at 10:50:13AM +1000, tomc@evetcia.com wrote: => > I dont do exactly what you are looking for but I do do this: => > => > RewriteEngine on => > RewriteRule ^/(.*) => > http://localhost:8080/zopefolder/$1?REAL_HOST=%{HTTP_HOST} [QSA,P] => > ProxyPass /misc_ http://localhost:8080/misc_ => > ProxyPass /p_ http://localhost:8080/p_ => > => Thanks, I ended up with: => DocumentRoot /var/www => RewriteEngine On => RewriteLog "/var/log/apache-ssl/rewrite_log" => RewriteLogLevel 0 => ProxyRequests on => <Directory /var/www/dynamic> => RewriteEngine On => RewriteRule ^/var/www/dynamic/(.*) => http://localhost:8080/$1?REMOTE_ADDR=%{RE => MOTE_ADDR} [QSA,P] => </Directory> => => => There is a bit of magic involved in the Rule. First, http://same_host/ => is automatically dropped, this caused some grief (but is ROTFM grief, => i.e., my fault). Then Rule => RewriteRule ^(.*) => http://localhost:8080/$1?REMOTE_ADDR=%{REMOTE_ADDR} [QSA,P] => worked on my test server, but had to be modified to the above on my => production server. Haven't figured out why yet, but may never bother. => => Thanks. => => Jim => => _______________________________________________ => Zope maillist - Zope@zope.org => http://lists.zope.org/mailman/listinfo/zope => ** No cross posts or HTML encoding! ** => (Related lists - => http://lists.zope.org/mailman/listinfo/zope-announce => http://lists.zope.org/mailman/listinfo/zope-dev ) =>