Tkachenko Alexei | 10 Jan 23:48
Picon

RE: Log question


Ivan, I can't use such thing.
I have hundreds of virtual hosts and can't add this "CustomLog ..." to each
of them.
Additionally I need to preserve current CustomLog setting for each
VirtualHost.

So I need to add additional logging for all requests by regexp of URL.

Also I need to preserve existing mod_security logging.
What should I place to the mod_security, is it allowed to have different
mod_security logging for different conditions?

Alexey. 

-----Original Message-----
From: Ivan Ristic [mailto:ivanr <at> webkreator.com] 
Sent: Monday, January 03, 2005 15:17
To: Tkachenko Alexei
Cc: mod-security-users <at> lists.sourceforge.net
Subject: Re: [mod-security-users] Log question

Tkachenko Alexei wrote:
> Peace be with you,
> 
> 
> I'd like to log all php and perl requests in different logs in 
> addition to my usual mod_security logging.

   All requests? You can do that without mod_security. Something like
   this should work:

   SetEnvIf Request_URI (\.php|\.phtml|/)$ dynamic
   CustomLog logs/b92.log combined env=dynamic

--
Ivan Ristic (http://www.modsecurity.org)

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

Gmane