Remove Perl*Handler from subfolder
Remove Perl*Handler from subfolder
am 03.11.2008 13:22:03 von jan
------=_Part_32730_18298919.1225714923346
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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:
SetHandler perl-script
PerlResponseHandler myreponsehandler
PerlAccessHandler myaccesshandler
SetHandler default-handler
# how to disable the PerlAccessHandler?
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
------=_Part_32730_18298919.1225714923346
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
------=_Part_32730_18298919.1225714923346--
Re: Remove Perl*Handler from subfolder
am 03.11.2008 14:58:40 von Adam Prime
Jan-Aage Frydenbø-Bruvoll wrote:
> Example:
>
>
> SetHandler perl-script
> PerlResponseHandler myreponsehandler
> PerlAccessHandler myaccesshandler
>
>
>
> SetHandler default-handler
> # how to disable the PerlAccessHandler?
>
>
> 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
Re: Remove Perl*Handler from subfolder
am 03.11.2008 16:09:03 von aw
Adam Prime wrote:
> Jan-Aage Frydenbø-Bruvoll wrote:
>> Example:
>>
>>
>> SetHandler perl-script
>> PerlResponseHandler myreponsehandler
>> PerlAccessHandler myaccesshandler
>>
>>
>>
>> SetHandler default-handler
>> # how to disable the PerlAccessHandler?
>>
>>
>> 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 ?)
Re: Remove Perl*Handler from subfolder
am 03.11.2008 16:10:51 von jan
------=_Part_34023_16066134.1225725051914
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
2008/11/3 Adam Prime
> I believe you can do something like:
>
> PerlAccessHandler "sub {return Apache2::Const::DECLINED;}"
>
> Adam
>
Ha! Brilliant - works a charm. Thanks a lot!
- Jan
------=_Part_34023_16066134.1225725051914
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
2008/11/3 Adam Prime <>
I believe you can do something like:
PerlAccessHandler "sub {return Apache2::Const::DECLINED;}"
Adam
Ha! Brilliant - works a charm. Thanks a lot!
- Jan
------=_Part_34023_16066134.1225725051914--
Re: Remove Perl*Handler from subfolder
am 03.11.2008 16:25:27 von jan
------=_Part_34151_15695192.1225725927198
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
2008/11/3 Andr=E9 Warnier
> 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
------=_Part_34151_15695192.1225725927198
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
2008/11/3 Andr=E9 Warnier <
..com">aw@ice-sa.com>
e class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204);=
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Adam Prime wrote:
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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
------=_Part_34151_15695192.1225725927198--