Logging of client IP rather than the IP of the Proxy
Bug #143352 reported by
Robert Munro
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Medium
|
Unassigned |
Bug Description
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.
Changed in zope2: | |
status: | New → Triaged |
tags: |
added: bugday removed: feature+solution zope |
To post a comment you must log in.
I forgot to put that this is for zope version 2.7.4 & I can't seem to edit that field now.