Afficher un message
Vieux 04/10/2006, 17h20   #2
Jim Hayter
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disable error log for a specific page

howa wrote:
> For example, if 404 not foudn on A.html, ignore it and don't record on
> the error log, other 404 not found will be logged
>
> is it possible to do this?
>
> thanks.
>


Try something like this (untested):

UnsetEnv DontLogAccess
SetEnvIf Request_URI ^/A.html$ DontLogAccess


CustomLog <log file spec> combined env=!DontLogAccess

The above sets the env var if it is the file you don't want to log. The
CustomLog directive adds the condition that the env var not be set.

I use something similar to put various access requests in different log
files.

Jim
  Réponse avec citation
 
Page generated in 0,05941 seconds with 9 queries