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.

I'm running WAMP server on Windows Server 2003, Apache 2.2, and I would like to completely disable writing into the access log.

It would be neat if I could do the following, but I'm on Windows:

CustomLog "|/dev/null" common

All I get in the error log is "piped log program '/dev/null' failed unexpectedly", although I kinda expected this...

Is there a Windows alternative to this or any other way to just disable writing the access log?

share|improve this question

closed as off topic by Chris S Jun 22 '12 at 17:41

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

5  
Isn't it enough to just comment this line? –  Khaled Jun 4 '12 at 9:36
    
How about CustomLog "|NUL" common –  Alan Kuras Jun 4 '12 at 13:09

1 Answer 1

up vote 4 down vote accepted

If you don't specify a log, Apache will not log... just comment out the line.

Piping it to the bit bucket is a bit of a waste, Apache will generate all log entries and write them all out, but the OS dumps them. Would make much more sense to just disable logging.

The Error log can be disabled with ErrorLog off too.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.