[Zope] How to log real user and ip in Z2.log behind squid/apache?

Sascha Ottolski sascha.ottolski at gallileus.de
Mon Jul 5 15:03:31 EDT 2004


> I run zope-2.7.1 behind squid and apache. Z2.log captures the ip of  
> squid/apache (they are on the same machine), and the user is always  
> Anonymous. How to configure Z2.log to log the real ip of users and 
> their  login name?

Hi,

I just made a dirty hack for logging the ip-address. the patch is 
attached, you need to set trusted-proxy to make it work.


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 (Juli 2004)

Neu im Sortiment: neue Wissenschafts- und Fachliteratur von newBooks

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/testDriveAlertAbo
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Z2_log.diff
Type: text/x-diff
Size: 1538 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20040705/3db00a1e/Z2_log.bin


More information about the Zope mailing list