httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "apuerta.foros" <apuerta.fo...@renr.es>
Subject [users@httpd] How can i put two env= clauses on a CustomLog directive?
Date Wed, 26 May 2004 19:13:24 GMT

 Hi all.

 My Apache 1.3.26 server is rear a proxy and i have a rule like this in
my http.conf:
SetEnvIfNoCase Client-IP "\." proxy

CustomLog /var/log/apache/www.site.com-access.log combined env=!proxy

CustomLog /var/log/apache/www.site.com-access.log combined_proxy
env=proxy

 I also have a router that tests the server, asking for test.jsp every
30 seconds. This fulls my logs of unnecesary contents. Think in adding
something like this:
SetEnvIf Remote_Addr "10\.162\.120\.1" dontlog

but i can't add this rule to the above because CustomLog don't accept
two env= rules

CustomLog /var/log/apache/www.site.com-access.log combined env=!proxy
env!=dontlog

CustomLog /var/log/apache/www.site.com-access.log combined_proxy
env=proxy env=!dontlog

 What can i do?
 Thanks for your help.


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


Mime
View raw message