Re: [users@httpd] Filtering/Interception Error log strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux