Logging client IP of reverse proxied web traffic

Thursday, 18. 05. 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