6

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?

Miljenko Barbir
  • 179
  • 1
  • 1
  • 6

1 Answers1

6

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.

Chris S
  • 77,945
  • 11
  • 124
  • 216