Skip to content

Instantly share code, notes, and snippets.

@cdolek
Last active August 29, 2015 14:09
Show Gist options
  • Save cdolek/b72c81f813f03b043e37 to your computer and use it in GitHub Desktop.
Save cdolek/b72c81f813f03b043e37 to your computer and use it in GitHub Desktop.
apache exclude static assets from access log
SetEnvIf Request_URI "\.gif$|\.jpg$|\.js$|\.css$|\.ico$|\.png$|\.ttf$|\.woff$|\.eot$|\.svg$|\.jpeg$|\.txt$" is_static
CustomLog /var/yourlogs/apache.access_log combined env=!is_static
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment