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

Jaroslav Lukesh lukesh at seznam.cz
Fri Sep 10 02:32:54 EDT 2004


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



More information about the Zope mailing list