I am trying to turn off apache logging for one of my domains, because the traffic is so high and now we are moving to a hosted stats service.
I can't seem to find a way to disable the CustomLog directive in the httpd.include file that is located in the conf folder of the domain.
Is there such thing as a CustomLog Off ? that would disable it, then i could append it in the vhost.conf.
forwarding the log entries to /dev/null is not an option either.
I believe the best way to do it is to find the httpd.include template file and make the edit there and restart apache. I can't seem to find it.
Any idea on how to solve this issue?
Turn off apache logging
Scott,
Is this correct?
SetEnvIfNoCase Host domain\.com nolog
CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog env=!nolog
Basically if request is from host domain.com then set nolog and use the env=!nolog
doesn't seem to work for me . . still getting logging when i do tail-f 100 access_log
Is this correct?
SetEnvIfNoCase Host domain\.com nolog
CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog env=!nolog
Basically if request is from host domain.com then set nolog and use the env=!nolog
doesn't seem to work for me . . still getting logging when i do tail-f 100 access_log
Based on this information:
http://www.bitweaver.org/wiki/Advanced+ ... ffic+Sites
SetEnvIf Request_URI "(\.gif|\.png|\.jpg|\.css|\.js|\.php|\.html|\.ico)$" nolog
CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog env=!nolog
Still doesn't seem too work
http://www.bitweaver.org/wiki/Advanced+ ... ffic+Sites
SetEnvIf Request_URI "(\.gif|\.png|\.jpg|\.css|\.js|\.php|\.html|\.ico)$" nolog
CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog env=!nolog
Still doesn't seem too work