httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: [PATCH] Disabling logging based on envariable
Date Sun, 17 Aug 1997 19:23:38 GMT


On Sun, 17 Aug 1997, Elizabeth Mattijsen wrote:

> Then, together with a RewriteCond, you could do the following:
> 
> RewriteCond		%{REMOTE_ADDR)	123.123.123.*
> RewriteRule		^.*\.htm$		[L,O=BadRobots:logs/badrobotlog]

This is less general than what Paul suggested ... and has the bad property
that it would require mod_rewrite and mod_log_conifg to "know" about each
other...

> LogFormat	Extended	"%h %l %u %t \"%r\" %s %b \"%{Referer}i\"
> \"%{User-agent}i\""
>
> in the beginning of the configuration, and then do a:
> 
> LogFormat	Extended

You could use m4 or perl to generate your config files :) 

Dean


Mime
View raw message