How can I configure the apache web server such that it does not log any access to the server?

link|improve this question
What web server? – theotherreceive Sep 12 '09 at 15:07
tag says it's apache .) – Eimantas Sep 12 '09 at 15:15
Note that this is really not recommended... I can't imagine a really good reason for shutting off logging entirely. But if you can afford to have bad things happen to the server and never know about it, then I guess it's not such a big deal. – David Zaslavsky Sep 13 '09 at 21:29
One situation where disabling all logging may be desirable is when running on an embedded platform with a flash card. There it is important to eliminate ALL unnecessary writes to flash. Of course, in that situation, you'd probably want to run something a little lighter than Apache anyway. – user17834 Oct 16 '09 at 23:14
feedback

2 Answers

up vote 0 down vote accepted

Replace CustomLog entries with:

CustomLog /dev/null combined

and ErrorLog entries with:

ErrorLog /dev/null
link|improve this answer
feedback

you should remove CustomLog / AccessLog / ErrorLog entries for whatever reason you don't want it to log any access, errors or custom info.

link|improve this answer
This won't work because at least with ErrorLog the default value "logs/error_log" will jump in if you do not override it in your configuration. – joschi Sep 13 '09 at 10:47
feedback

Your Answer

 
or
required, but never shown