httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaspreet Singh <jsi...@ensim.com>
Subject Re: [users@httpd] Filtering/Interception Error log strings
Date Fri, 13 May 2005 13:36:14 GMT
Hi,

thanx for the reply.

On Fri, 2005-05-13 at 14:19 +0100, Nick Kew wrote:
> Jaspreet Singh wrote:
> 

> Not really - a google search would tell you more.  There are modules
> written for the purpose (mod_vhost_alias or third-party alternatives),
> or there's a solution described on the mod_rewrite pages.
> 
can't use them as i have custom configuration  for each virthost
container.

> Good point.  Adding the host to normal error logging would seem to be
> the simple solution.  I'm not sure if there's a simpler solution.
> 

But, How do i append virt_host/server name ????

> > 
> > 
> > If, i am not mistaken .. "__after__" means that the msg is already
> > logged to error_log and them passed to hook. Thats ok with me, as i can
> > get the server name from "request" structure and log the same msg again
> > to syslog appending server name.
> 
> Yes, probably.  But logging twice doesn't seem very efficient to me.
> 
If somehow i can intercept the error logs .. only then can i log them
(again) with virt_host/server name appended. I couldn't find this hook
in apache headers/code.

any clues ???

thanx,
jaspreet singh



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


Mime
View raw message