[ZCM] [ZC] 1732/ 1 Request "Logging of client IP rather than the IP
of the Proxy"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Tue Mar 22 11:01:19 EST 2005
Issue #1732 Update (Request) "Logging of client IP rather than the IP of the Proxy"
Status Pending, Zope/feature+solution medium
To followup, visit:
http://www.zope.org/Collectors/Zope/1732
==============================================================
= Request - Entry #1 by rjmunro on Mar 22, 2005 11:01 am
Uploaded: "zope-proxy-log.patch"
- http://www.zope.org/Collectors/Zope/1732/zope-proxy-log.patch/view
The Z2.log file contains the IP addresses of the client accessing zope. Because 99% of the time, zope is deployed behind a reverse proxy, the Z2.log file normally logs the IP address of that proxy for all hits, rather then the IP address of the client. The attached patch makes it log the actual client address as given by the "x-forwarded-for" header that is added by the proxy. Note that in the case of the request going through several proxies, each proxy adds another address to the x-forwarded for header (comma separated), but this patch logs only the last one.
==============================================================
More information about the Zope-Collector-Monitor
mailing list