Logging client IP of reverse proxied web traffic

Thursday, 05. 18. 2006  –  Category: all, sw

‘Cos I always forget:

LogFormat       "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy

This just makes Apache log the IP in the X-F-F HTTP header instead of %h in reverse-proxy scenarios.

Leave a Reply