How to get Client IP adres with Zope behind Apachr
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 ? Thanks for your help...... Martin Koekenberg
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
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@seznam.cz> To: <zope@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@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 )
Ausum Studio wrote at 2004-9-10 08:37 -0500:
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.
I do not think so. At the time, I wrote this patch, a special C extension was necessary for Apache to get its "proxy_via" directive. Nowadays, Apache no longer needs specially build. Zope supports the Apache way. -- Dieter
Am Donnerstag, 9. September 2004 23:40 schrieb Martin Koekenberg:
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 ?
Thanks for your help......
Martin Koekenberg
May be this one is of help: http://mail.zope.org/pipermail/zope/2001-June/092938.html I remember there used to be patches or the like for apache 1.x, but I think there were never ported for 2.x. If you don't really need to have apache in front, another approach might be to use pound (well, in theory, there seems to be a little problem in zope or python regarding header processing, but it's very simple to get around this). Cheers, Sascha -- Gallileus - the power of knowledge Gallileus GmbH http://www.gallileus.info/ Pintschstraße 16 fon +49-(0)30-41 93 43 43 10249 Berlin fax +49-(0)30-41 93 43 45 Germany +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ AKTUELLER HINWEIS (September 2004) Neu im Sortiment: ca. 3,5 Millionen zusätzliche antiquarische Bücher, Autographien, Grafiken und Noten von antbo Suchen, finden, bestellen unter http://www.gallileus.info/gallileus/search/advanced Oder testen Sie unseren Literatur Alert Service zwei Wochen lang kostenlos unter: http://www.gallileus.info/gallileus/about/products/alerts/ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
participants (5)
-
Ausum Studio -
Dieter Maurer -
Jaroslav Lukesh -
Martin Koekenberg -
Sascha Ottolski