Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|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 Z 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

2 Answers 2

up vote 0 down vote accepted

Replace CustomLog entries with:

CustomLog /dev/null combined

and ErrorLog entries with:

ErrorLog /dev/null
share|improve this answer

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

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.