<IfModule mod_setenvif.c> SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog CustomLog /var/log/apache2/access_log combined env=!dontlog </IfModule>