Apache2 access.log

Forum for questions and support relating to the 1.24.x releases only.
Locked
HomeServer
Posts: 7
Joined: Tue Jun 29, 2010 8:38 am

Apache2 access.log

Post 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?
Pada
Posts: 69
Joined: Fri Jul 30, 2010 12:29 am

Post 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
Locked