How to set Apache not to log requests for images or java scripts How to set Apache not to log requests for images or java scripts, large apache logs, reduce apache logs
Apache logs
Having around 100 visitors per day could make your apache logs very large and this would not be very pleasant for any web server admin. One thing you could do is to configure apache not to log requests for Images, java scripts or any other extension.
The mod_setenvif module allows you to set environment variables according to whether different aspects of the request match regular expressions you specify. These environment variables can be used by other parts of the server to make decisions about actions to be taken.
Setting an environment variable for apache, for example: dontlog
Edit your httpd.conf (to make it available for all your domains/subdomains) or vhosts file to make it available only for one domain/subdomain and add this line:
Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.