[Mod_log_sql] patch to work with X-Forwarded-For and mod_vhs HTTP header
Rene Kanzler
rk at cosmomill.de
Mon Jun 22 07:51:35 EDT 2009
Hello
I have created a small patch to get mod_log_sql working with
X-Forwarded-For and mod_vhs HTTP header.
The new characters in the log format-string are "x" and "g".
To log real IP adresses behind a proxy replace "h" with "x" in your log
format-string.
If no X-Forwarded-For HTTP header is found the remote IP address will be
logged.
mod_vhs users should replace "v" or "V" with "g" according to the manual at
http://openvisp.fr/doku/doku.php?id=mod_vhs:logs
If the mod_vhs HTTP header is not found the virtual host name will be
logged.
This patch is against mod_log_sql version 1.100
This patch is only tested with Apache 2.2.x
Hopefully somebody finds this useful.
The patch is attached ;-)
Cheers Rene
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mod_log_sql-1.100.patch.gz
Type: application/x-gzip
Size: 26988 bytes
Desc: not available
Url : http://lists.outoforder.cc/pipermail/mod_log_sql/attachments/20090622/e78488b7/attachment-0001.gz
More information about the Mod_log_sql
mailing list