[Zope] remote address

Fritz Mesedilla fritz.mesedilla@summitmedia.com.ph
Mon, 17 Sep 2001 11:35:24 +0800


Greetings Bill!

Is it possible to use ProxyVia with mod_rewrite since we use rewrite to hide
the port number and folder of the zope websites?

Thanks.

Fritz Mesedilla
Systems Administrator

Summit Interactive, Inc.
FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping
femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph

Palm Pilot Software: TVSked - Download from the link below
----------------------------------------------------------------------------
http://mesedilla.tripod.com           +Basta Ikaw Lord
-----Original Message-----
From: Bill Anderson [mailto:bill@immosys.com]
Sent: Sunday, September 16, 2001 1:36 AM
To: Richard Barrett
Cc: fritz.mesedilla@summitmedia.com.ph; Zope Mailing List
Subject: Re: [Zope] remote address


On Fri, 2001-09-14 at 01:17, Richard Barrett wrote:
> At 14:19 14/09/2001 +0800, Fritz Mesedilla wrote:
> >My setup right now has apache in front then zope.
> >When I do a <dtml-var REMOTE_ADDR> it gives the address of the apache
> >server.
> >Is there a way to get the address of the visitor and not the apache
server?
>
> There is a patch for Apache which leads it, when acting as a Proxy, to
> forward the incoming request information it is seeing in an HTTP VIA
header
> (See RFC2616) which it adds to the request. There is info about this patch
> at http://www.zope.org/Members/unfo/apache_zserver_ssl but I've not yet
> used it myself.
>


I don't think the patch is needed anymore. I have a proxy_pass server
setup, and use the "ProxyVia Full" directive. Not only can I use
<dtml-var REMOTE_ADDR>, but the original IP also shows up in the Z2.log
file. Apache version is 1.3.19-5 (Included in RH 7.1).
Bill Anderson