View Single Post

  #2 (permalink)  
Old 05-07-2008
Kees Nuyt
 
Posts: n/a
Default Re: SetEnvIF Remote_Addr "192\.168" nolog

On Wed, 07 May 2008 06:46:57 -0400, Marten Kemp
<marten.kemp@thisplanet-link.net> wrote:

>The above directive seems to suppress logging
>for everything, not just the intranet. Am I
>doing something wrong?
>
>I'm running apache 2.2.3; Debian 2.8.16 kernel.


Google for ``setenvif customlog "Version 2.2"
-"List-Post" site:httpd.apache.org``
(without the ``)

The SetEnvIf (or SetEnvIfNoCase) directive by itself
only sets an environment variable.
http://httpd.apache.org/docs/2.2/mod....html#setenvif

You have to configure the accesslog as described in
http://httpd.apache.org/docs/2.2/logs.html#accesslog ,
( see the Conditional Logs paragraph, just above
http://httpd.apache.org/docs/2.2/logs.html#rotation )

Of course you also have to enable the mod_setenvif and
mod_log_config modules.

HTH
--
( Kees
)
c[_] A mainframe: The biggest PC peripheral available. (#123)