Re: [Zope] How to log real user and ip in Z2.log behind squid/apache?
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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
participants (1)
-
Sascha Ottolski