You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Saar Picker <sa...@CSUA.Berkeley.EDU> on 2000/04/13 20:16:38 UTC

removing an authhandler from sublocation?

Hi,

I was wondering if there was a way to remove a mod_perl handler from a
location beneath a location where the handler was set.

So if you have:
<Location />
SetHandler perl-script
PerlHandler My::Module
</Location>

can you do:
<Location /sublocation>
# no handlers
</Location>

I've tried the above and it doesn't seem to remove My::Module::handler
from /sublocation. Is there a way to do this?

Thanks,
-Saar Picker


Re: removing an authhandler from sublocation?

Posted by Vivek Khera <kh...@kciLink.com>.
>>>>> "SP" == Saar Picker <sa...@CSUA.Berkeley.EDU> writes:

SP> can you do:
SP> <Location /sublocation>
SP> # no handlers
SP> </Location>

Try "SetHandler default-handler" inside your location.

Not tested, but in theory... ;-)

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-301-545-6996
PGP & MIME spoken here            http://www.kciLink.com/home/khera/

Re: removing an authhandler from sublocation?

Posted by darren chamberlain <da...@boston.com>.
Saar Picker (saarp@CSUA.Berkeley.EDU) said something to this effect:
> 
> Hi,
> 
> I was wondering if there was a way to remove a mod_perl handler from a
> location beneath a location where the handler was set.
> 
> So if you have:
> <Location />
> SetHandler perl-script
> PerlHandler My::Module
> </Location>
> 
> can you do:
> <Location /sublocation>
> # no handlers
> </Location>
> 
> I've tried the above and it doesn't seem to remove My::Module::handler
> from /sublocation. Is there a way to do this?

Do it like this:

<Location /sublocation>
  SetHandler default-handler
</Location>

darren

-- 
Friends help you move. Real friends help you move bodies.