Oct 24, 2013

Apache: How to log the Original IP or X-Forwarded-For in you access log

You need to modify you apache configuration and find the related data below and update according to data below.

LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b " combined
CustomLog /var/log/httpd/access_log combined
Post a Comment