parsed.org

Tips by tag: mod_env

Omit Hosts From Logs by xinu on Dec 31, 2005 03:51 PM

If you want to omit traffic from certain hosts (the dev machines, etc) you can add these directives to your configuration block:

SetEnvIf Remote_Addr 192.168.1.99$ do_not_log
CustomLog logs/access_log combined env=!do_not_log

*Note: You need to have mod_env installed for this to work.

apacheconfigurationloggingmod_env
RSS