Skip to content

Instantly share code, notes, and snippets.

@thebouv
Created August 31, 2016 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thebouv/03378b25b8453b6d2736eb6386697f29 to your computer and use it in GitHub Desktop.
Save thebouv/03378b25b8453b6d2736eb6386697f29 to your computer and use it in GitHub Desktop.
LogFormat "%{X-Cluster-Client-IP}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
SetEnvIf X-Cluster-Client-IP "^.*\..*\..*\..*" forwarded
CustomLog "logs/access_log" combined env=!forwarded
CustomLog "logs/access_log" proxy env=forwarded
# http://fishnix.tumblr.com/post/18037951487/x-forwarded-for-in-rackspace-cloud-load-balancers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment