[Zope] How to get Client IP adres with Zope behind Apachr

Ausum Studio ausum_studio at hotmail.com
Fri Sep 10 09:37:18 EDT 2004


There's a patch to Virtual Monster, from Dieter Maurer. It works fine.

http://www.dieter.handshake.de/pyprojects/zope/#bct_sec_5.5

I don't know whether this feature has been added to Zope 2.7.


Ausum



----- Original Message ----- 
From: "Jaroslav Lukesh" <lukesh at seznam.cz>
To: <zope at zope.org>
Sent: Friday, September 10, 2004 1:32 AM
Subject: Re: [Zope] How to get Client IP adres with Zope behind Apachr


> Dne čtvrtek, 9. září 2004 23:40 Martin Koekenberg napsal(a):
> > Hello,
> >
> > I'm running Zope (2.7.0) behind Apache (2.0.50).
> > I'm trying to get the client ip adres but I always get 127.0.0.1....
That's
> > logical because Apache runs on the same server.
> >
> > How can I get the real users IP adres ?
>
> Take look at complete request. Create dtml method "request" at zope root
with
> one line:
>
> <dtml-var REQUEST>
>
> Then call some page at your web:
>
> http://yourweb/yourdocument/request
>
> Then you coould see, what your apache adds or modifies http request
header.
>
> -- 
>
>                         Jaroslav Lukesh
>   -------------------------------------------------------------
>   This e-mail could not contain any viruses because I use Linux
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>


More information about the Zope mailing list