I have a number of cgi-scripts running on my Apache server one in particular is in a persistent loop which over time causes the log file to fill up in RAM drive.
So I did some searching online to filter out entries to my logs and found the following links: http://www.howtoforge.com/setenvif_apache2 and http://www.virtualmin.com/node/19152
I edited my Apache configuration file as directed by both sites but I'm having no luck.
First I tried.
CustomLog "/ram/apache_access.log" common env=!dontlog
SetEnvIf Request_URI "^/cgi-bin/loop.cgi$" dontlog
This had stopped logging entries for /cgi-bin/loop.cgi but now Apache doesn't log any other cgi scripts which is not what I want.
As another test I tried blocking images in /images/ but that didn't work either.
SetEnvIf Request_URI "^/images/$" dontlog
Does anyone know where I'm going wrong??
How can I stop i.e. /cgi-bin/loop.cgi?test or /images/artwork/*.jpg from being logged??
Richard S.