Last active
September 5, 2015 15:04
-
-
Save zerolab/509545 to your computer and use it in GitHub Desktop.
Stop Apache from logging static files
This file contains 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
# Apache, Drupal - don't log static files | |
# http://2bits.com/drupal-performance/reducing-size-and-io-load-apaches-web-server-log-files.html | |
SetEnvIf Request_URI "\.(jpg|xml|png|gif|ico|js|css|swf|js?.|css?.)$" DontLog | |
CustomLog /var/log/apache2/access-example.com.log combined Env=!DontLog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment