Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: caterham_wwwPosted on 2009-05-08 at 03:57:18ID: 24334772
> Can I disable them with PHP if it finds something in the DB?
If you use mod_php (i.e. no cgi/fastcgi solution). yes.
php:
apache_setenv('dontlog', '1');
and in your apache configuration
You should find a line starting with
CustomLog logs/access_log combined
(or similar). Change it to
CustomLog logs/access_log combined env=!dontlog
> And/or, can we disable logging 404 messages altogether for Apache?
No, only with a (simple) self-written solution (c module, mod_perl) since you can't set an env after the handler runs with the directives provided by apache.