Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Remove Perl*Handler from subfolder

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


jan at frydenbo-bruvoll

Nov 3, 2008, 4:22 AM

Post #1 of 5 (526 views)
Permalink
Remove Perl*Handler from subfolder

Dear list,

I've been googling unsuccessfully for quite a while to find an answer to my
problem, so I'm hoping that someone here would be able to help me... My
question and problem is quite simple - I need to remove a Perl*Handler from
a sub folder after defining it higher up in the Apache config hierarchy.

Example:

<Location />
SetHandler perl-script
PerlResponseHandler myreponsehandler
PerlAccessHandler myaccesshandler
</Location>

<Location /nohandler>
SetHandler default-handler
# how to disable the PerlAccessHandler?
</Location>

As you can see I've found how to disable/re-set the response handler, but
the Access handler is still active. Any tips, please?

TIA + best regards
Jan


adam.prime at utoronto

Nov 3, 2008, 5:58 AM

Post #2 of 5 (508 views)
Permalink
Re: Remove Perl*Handler from subfolder [In reply to]

Jan-Aage Frydenbų-Bruvoll wrote:
> Example:
>
> <Location />
> SetHandler perl-script
> PerlResponseHandler myreponsehandler
> PerlAccessHandler myaccesshandler
> </Location>
>
> <Location /nohandler>
> SetHandler default-handler
> # how to disable the PerlAccessHandler?
> </Location>
>
> As you can see I've found how to disable/re-set the response handler,
> but the Access handler is still active. Any tips, please?
>

I believe you can do something like:

PerlAccessHandler "sub {return Apache2::Const::DECLINED;}"

Adam


aw at ice-sa

Nov 3, 2008, 7:09 AM

Post #3 of 5 (508 views)
Permalink
Re: Remove Perl*Handler from subfolder [In reply to]

Adam Prime wrote:
> Jan-Aage Frydenbų-Bruvoll wrote:
>> Example:
>>
>> <Location />
>> SetHandler perl-script
>> PerlResponseHandler myreponsehandler
>> PerlAccessHandler myaccesshandler
>> </Location>
>>
>> <Location /nohandler>
>> SetHandler default-handler
>> # how to disable the PerlAccessHandler?
>> </Location>
>>
>> As you can see I've found how to disable/re-set the response handler,
>> but the Access handler is still active. Any tips, please?
>>
>
> I believe you can do something like:
>
> PerlAccessHandler "sub {return Apache2::Const::DECLINED;}"
>
> Adam

You may even be able to simplify that to

PerlAccessHandler Apache2::Const::DECLINED

(I'm curious, does it work ?)


jan at frydenbo-bruvoll

Nov 3, 2008, 7:10 AM

Post #4 of 5 (513 views)
Permalink
Re: Remove Perl*Handler from subfolder [In reply to]

2008/11/3 Adam Prime <adam.prime[at]utoronto.ca>

> I believe you can do something like:
>
> PerlAccessHandler "sub {return Apache2::Const::DECLINED;}"
>
> Adam
>

Ha! Brilliant - works a charm. Thanks a lot!

- Jan


jan at frydenbo-bruvoll

Nov 3, 2008, 7:25 AM

Post #5 of 5 (504 views)
Permalink
Re: Remove Perl*Handler from subfolder [In reply to]

2008/11/3 André Warnier <aw[at]ice-sa.com>

> Adam Prime wrote:
>
>> I believe you can do something like:
>>
>> PerlAccessHandler "sub {return Apache2::Const::DECLINED;}"
>>
>> Adam
>>
>
> You may even be able to simplify that to
>
> PerlAccessHandler Apache2::Const::DECLINED
>
> (I'm curious, does it work ?)
>
>
Yup, even prettier!

Thanks
Jan

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.