I have a Zope server behind a proxy server ( http://www.apsis.ch/pound ), in Zope, I am configured zope.conf ( trust-servers and cgi-environment). But in the log file, I can see only the ip of the proxy, when I want to see the client ip. HTTP-FORWARDED-FROM is set. But Zope logs REMOTEADDR in place of FORWARDED-FROM. I think that I may modify any python file in order to log FORWARDED-FROM , but I cannot find the py file that I may modify. Could anybody help me? I want to log the forwarded-from value. Thanks. ______________________________________________ Yahoo! lanza su nueva tecnología de búsquedas ¿te atreves a comparar? http://busquedas.yahoo.es
Just curious: rather than jump through hoops to try to make Zope log the right IP would it be possible for you to put Apache in front of Pound and have it do the logging? This would also provide a single log for all requests (no matter which backend server they made it to). On Tue, 2004-07-27 at 06:29, Egon wrote:
I have a Zope server behind a proxy server ( http://www.apsis.ch/pound ), in Zope, I am configured zope.conf ( trust-servers and cgi-environment). But in the log file, I can see only the ip of the proxy, when I want to see the client ip. HTTP-FORWARDED-FROM is set. But Zope logs REMOTEADDR in place of FORWARDED-FROM. I think that I may modify any python file in order to log FORWARDED-FROM , but I cannot find the py file that I may modify.
Could anybody help me? I want to log the forwarded-from value.
Thanks.
______________________________________________ Yahoo! lanza su nueva tecnología de búsquedas ¿te atreves a comparar? http://busquedas.yahoo.es _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
How about pound doing the logging? It's working nicely here. --r. On 27 Jul 2004, at 14:18, Chris McDonough wrote:
Just curious: rather than jump through hoops to try to make Zope log the right IP would it be possible for you to put Apache in front of Pound and have it do the logging? This would also provide a single log for all requests (no matter which backend server they made it to).
On Tue, 2004-07-27 at 06:29, Egon wrote:
I have a Zope server behind a proxy server ( http://www.apsis.ch/pound ), in Zope, I am configured zope.conf ( trust-servers and cgi-environment). But in the log file, I can see only the ip of the proxy, when I want to see the client ip. HTTP-FORWARDED-FROM is set. But Zope logs REMOTEADDR in place of FORWARDED-FROM. I think that I may modify any python file in order to log FORWARDED-FROM , but I cannot find the py file that I may modify.
Could anybody help me? I want to log the forwarded-from value.
Thanks.
______________________________________________ Yahoo! lanza su nueva tecnología de búsquedas ¿te atreves a comparar? http://busquedas.yahoo.es _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
————————————————————— Russ Ferriday Solution Workshops for Plone (+44) (0) 7789 338868 http://www.solutionworkshops.com
participants (3)
-
Chris McDonough -
Egon -
Russ Ferriday