Skip to content

Instantly share code, notes, and snippets.

@alpeshbhavsar
Created June 1, 2013 11:50
X-Forward
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
CustomLog "/var/log/httpd/www.abc.com-access_log" combined env=!forwarded
CustomLog "/var/log/httpd/www.abc.com-access_log" proxy env=forwarded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment