[Zope] remote address
Bill Anderson
bill@immosys.com
15 Sep 2001 11:36:25 -0600
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