Last active
August 29, 2015 14:09
-
-
Save cdolek/b72c81f813f03b043e37 to your computer and use it in GitHub Desktop.
apache exclude static assets from access log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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