Page 1 of 1

Apache2 access.log

Posted: Fri Jul 30, 2010 8:12 am
by HomeServer
Apache question

ZM 1.24.2 on Ubuntu 10.04


With running the montage 24/7 the access.log is becoming VERY large, how can I disable 127.0.0.1 being logged?

Posted: Fri Jul 30, 2010 12:28 pm
by Pada
Just go and read up at Apache's docs

eg. from http://httpd.apache.org/docs/2.0/logs.html

Code: Select all

# Mark requests from the loop-back interface
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
# Mark requests for the robots.txt file
SetEnvIf Request_URI "^/robots\.txt$" dontlog
# Log what remains
CustomLog logs/access_log common env=!dontlog