You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Julien OIX <ju...@presidence.univ-nantes.fr> on 2002/03/15 10:36:52 UTC

Conditional logging

hi everyone,

here's a part of my httpd.conf

SetEnvIf Request_URI \.gif dont_log
SetEnvIf Request_URI \.jpg dont_log
SetEnvIf Request_URI \.JPG dont_log
SetEnvIf Remote_Addr $IP_ADRESS dont-log

ErrorLog logs/glob_error_log
CustomLog logs/glob_access_log common env=!dont_log

request for images don't log, it works fine
but for not logging request from a specific IP, it doesn't filter.

any ideas ?

thansk in advance

-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: julien.oix@presidence.univ-nantes.fr

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Conditional logging

Posted by Julien OIX <ju...@presidence.univ-nantes.fr>.
Julien OIX a écrit :
> 
> hi everyone,
> 
> here's a part of my httpd.conf
> 
> SetEnvIf Request_URI \.gif dont_log
> SetEnvIf Request_URI \.jpg dont_log
> SetEnvIf Request_URI \.JPG dont_log
> SetEnvIf Remote_Addr $IP_ADRESS dont-log
> 
> ErrorLog logs/glob_error_log
> CustomLog logs/glob_access_log common env=!dont_log
> 
> request for images don't log, it works fine
> but for not logging request from a specific IP, it doesn't filter.
> 
> any ideas ?
> 
> thansk in advance

sorry for this post, I'd have to have some attention before posting

SetEnvIf Remote_Addr $IP_ADRESS dont-log ==>> SetEnvIf Remote_Addr
$IP_ADRESS dont_Julien OIX a écrit :

> 
> --
> Julien OIX
> Service Informatique de Gestion
> Tél: 02 40 99 83 65
> mail: julien.oix@presidence.univ-nantes.fr
> 
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
log


> 
> --
> Julien OIX
> Service Informatique de Gestion
> Tél: 02 40 99 83 65
> mail: julien.oix@presidence.univ-nantes.fr
> 
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org

-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: julien.oix@presidence.univ-nantes.fr

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Conditional logging

Posted by Stephen Reppucci <sg...@logsoft.com>.
Two problems I see right off the bat:

$IP_ADRESS -- Is this misspelled? Should be $IP_ADDRESS?

Bigger issue: AFAIK, there isn't any capablity for
shell-like variable interpolation in the apache config
file.  Not sure where you're setting up $IP_ADRESS [sic],
but I don't believe there's any built in capabilities
for this to get expanded into whatever value you've set.

(Though, I've often wished for something like that...closest
I can think of are <Perl> sections for a mod_perl enabled
build.)

<Steve>

On Fri, 15 Mar 2002, Julien OIX wrote:

> hi everyone,
>
> here's a part of my httpd.conf
>
> SetEnvIf Request_URI \.gif dont_log
> SetEnvIf Request_URI \.jpg dont_log
> SetEnvIf Request_URI \.JPG dont_log
> SetEnvIf Remote_Addr $IP_ADRESS dont-log
>
> ErrorLog logs/glob_error_log
> CustomLog logs/glob_access_log common env=!dont_log
>
> request for images don't log, it works fine
> but for not logging request from a specific IP, it doesn't filter.
>
> any ideas ?
>
> thansk in advance
>
>

-- 
Steve Reppucci                                       sgr@logsoft.com |
Logical Choice Software                          http://logsoft.com/ |
=-=-=-=-=-=-=-=-=-=-  My God!  What have I done?  -=-=-=-=-=-=-=-=-=-=


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org