1

Anyone know how I can stop Apache from logging this? It has no value, that I can see, and just clutters log in batches.

::1 - - [15/Sep/2011:10:26:29 -0700] "OPTIONS * HTTP/1.0" 200 -
::1 - - [15/Sep/2011:10:26:30 -0700] "OPTIONS * HTTP/1.0" 200 -
::1 - - [15/Sep/2011:10:26:31 -0700] "OPTIONS * HTTP/1.0" 200 -
::1 - - [15/Sep/2011:10:26:32 -0700] "OPTIONS * HTTP/1.0" 200 -
::1 - - [15/Sep/2011:10:26:33 -0700] "OPTIONS * HTTP/1.0" 200 -

1 Answer 1

2

It looks like internal dummy connection. So, you can exclude them from your log with:

SetEnvIf Remote_Addr "::1" dontlog

and add env=!dontlog to the end of CustomLog directive:

CustomLog logs/access_log combined env=!dontlog
2
  • sry...I need to back up a bit - I'm a complete Apache newbist. Are these two lines to be added to httpd.conf or should they be executed from the a shell on the server? Apologies for my ignorance.
    – Meltemi
    Sep 16, 2011 at 21:01
  • They should be added to httpd.conf.
    – quanta
    Sep 17, 2011 at 1:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .