On Thu, Feb 16, 2006 at 11:31:00AM -0500, Geoffrey Young wrote:
> 
> 
> Peter, Attila wrote:
> >  I did return DECLINED since I've read the documentation
> > and it was clear to me that I had to return DECLINED,
> > however, the handlers seemed to get stacked.
> > 
> > So what happens is that if my PerlTransHandler for virtual host
> > foo returns declined the My::Foo handler will still run and if
> > that one also returns DECLINED then will the apache's default handler
> 
> ah yeah, that's the way it's supposed to happen :)  my bad.
> 
> one possible solution is to try this
> 
> <VirtualHost foo>
>   PerlOptions -MergeHandlers
>   PerlTransHandler My::Return::Declined
> </VirtualHost>
> 
> if that doesn't work then you're left with the old solution - define what
> you want in each virtual host and nothing in the main server config.  or
> even passing some sort of communication around via $r->notes.

Wouldn't it be possible to define a variable (PerlSetVar) per vhost, or 
only for those vhosts that one does not want the TransHandler to run for? 
Check for the value of that variable in the handler and skip the remainder 
of it if appropriate.

Frank

Reply via email to