Skip to content

Instantly share code, notes, and snippets.

@dky
Created February 3, 2015 21:22
Show Gist options
  • Save dky/5e020cdb833a89a6d5c5 to your computer and use it in GitHub Desktop.
Save dky/5e020cdb833a89a6d5c5 to your computer and use it in GitHub Desktop.
Proxied ip
SetEnvIf REMOTE_ADDR "(.+)" CLIENTIP=$1
SetEnvIf X-Forwarded-For "^([0-9.]+)" CLIENTIP=$1
LogFormat "%{CLIENTIP}e %D %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" trueip_combined
CustomLog /var/log/httpd/<%= name %>_access_log trueip_combined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment