You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jake Stone <ja...@gmail.com> on 2010/01/11 22:59:13 UTC

[users@httpd] Problem using environment variable

Hello!
I run a small Apache server that runs a few VirtualHosts, one of which 
contains a website and Subversion repository. I am trying to separate 
the SVN activity and website activity into two separate log files using 
simple LogFormat and CustomLog commands:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" 
combined
LogFormat "%t %u %U %{SVN-ACTION}e" svn
...
CustomLog ".../access.log" combined env=!SVN-ACTION
CustomLog ".../svn.log" svn env=SVN-ACTION


The svn.log file is perfect, but the access.log file still has tons of 
SVN activity in it, like the lines below:
... [10/Jan/2010:18:02:12 -0600] "PROPFIND /svn/..." 207 398 "-" 
"SVN/1.6.6 (r40053)/TortoiseSVN-1.6.6.17493 neon/0.28.6"
... [10/Jan/2010:18:02:12 -0600] "CHECKOUT /svn..." 201 246 "-" 
"SVN/1.6.6 (r40053)/TortoiseSVN-1.6.6.17493 neon/0.28.6"

So the env!=SVN-ACTION option appears to either not be working, or not 
covering all of the SVN activity.
Am I setting the environment option incorrectly?
Since the SVN repositories all lie in a common folder ("/svn"), could I 
add something like "folder!=/svn" instead?

Thanks for your help!
Jake Stone

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org