[Zope] Apache, mod_rewrite, https working together?

Ragnar Beer rbeer@uni-goettingen.de
Thu, 14 Jun 2001 15:34:35 +0200


<snip>
>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>
>
<snip>

Does it help much to specify REMOTE_ADDR in the query string? Fortunately
this doesn't override the internal REMOTE_ADDR so that the correct IP
gets logged. Otherwise what would stop people from providing a false IP?
I guess the via-header patch that is mentioned in one of the howtos would
be a better solution. But I haven't tried it.

Ragnar