[Mod_log_sql] X-Forwarded-For headers?
Paul Chvostek
paul+modlogsql at it.ca
Sun Aug 8 04:56:16 EST 2004
Heya.
I'm trying to get mod_log_sql running on a web server behind a proxy
(Pound, from http://apsis.ch/pound/). The proxy correctly sends the
X-Forwarded-For header lines to indicate the original requestor, so in
the bad-old-days, I built my combined logs with:
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
Now... how do I get out of the bad-old-days? Section 3.6.17 of the
version 1.18 documentation (I'm using Apache 1.3) doesn't mention the
X-Forwarded-For header, nor is it mentioned in the equivalent unnumbered
section of the docs for 2.0. I also can't find anything that would
allow me to specify additional headers myself.
Am I missing something obvious, or am I really making a feature request?
Given the benefits of mod_log_sql for aggregating the log data of a farm
of web servers, support for X-Forwarded-For would seem like an obvious
requirement. :)
--
Paul Chvostek <paul at it.ca>
Operations / Abuse / Whatever
it.canada, hosting and development http://www.it.ca/
More information about the Mod_log_sql
mailing list