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?

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

Questions on Server Fault are expected to relate to 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.

  • 6
    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
  • When commenting out the line in a virtual host's .conf file, be sure to also comment out the line in the main/root httpd.conf. – Uwe Keim May 18 '18 at 9:41

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.

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