Mailing List Archive

[Fwd: SetHandler conflict]
If you want to go back to the default handler:

SetHandler default-handler

is the proper incantation.

cliff

Cliff Rayman wrote:

> I am assuming you tried multiple <Directory> directives
> to turn perl-script off for the directory in question and that
> failed for some reason - as in:
>
> <Directory "/">
> # turn on for entire site
> SetHandler perl-script
> </Directory>
>
> <Directory "/websupport">
> # except for this directory
> SetHandler pooper-scooper
> </Directory>
>
> cliff rayman
> genwax.com
>
> Charles wrote:
>
> > This message was sent from Geocrawler.com by "Charles" <cuda_fx@yahoo.com>
> > Be sure to reply to that address.
> >
> > Is there a way to de-activate or get
> > around "SetHandler perl-script" for certain
> > directories within a <Directory>?
> >
> > I have an web application (/websupport) that
> > doesn't work using "SetHandler perl-script", but
> > the rest of the website uses perl-script to write
> > a header.
> >
> > My solution is to Alias "websupport" outside the
> > <Directory> realm, but I would love to know how
> > to do this correctly.
> >
> > Here's what I've tried...
> >
> > header.pm
> >
> > sub handler
> > {
> > return DECLINED if $r->uri =~ /websupport/;
> > $r->handler ("perl-script");
> > ...
> >
> > this returns fine when you request /websupport,
> > but doesn't display the header otherwise. $r-
> > >set_handler ("perl-script"); doesn't work either.
> >
> > PerlTransHandler is not permitted here.
> >
> > <Directory /my/web/site>
> > PerlHandler Apache::translate Apache::header
> > PerlSetVar Header /header.conf
> > </Directory>
> >
> > where translate.pm was...
> >
> > sub handler
> > {
> > return DECLINED if $r->uri =~ /websupport/;
> > $r->handler ("perl-script");
> > return OK;
> > }
> >
> > This doesn't display the header, but /websupport
> > works fine.
> >
> > The solution probably lies with $r->push_handlers
> > somehow.
> >
> > Geocrawler.com - The Knowledge Archive