perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: $r->handler and $r->set_handlers on all files
Date Wed, 18 Apr 2007 15:23:13 GMT

>>> <Directory "/somedir/htdocs">
>>>     PerlAuthzHandler MyModule::authorize
>>>
>>> and in authorize:
>>>
>>> if ...
>>>     $r->handler('perl-script');
>>>     $r->set_handlers( (MP2 ? 'PerlResponseHandler' : 'PerlHandler') =>
>>> \&somefunc );
>>
>>
>> why are you doing this?  those same directives in httpd.conf are a
>> cleaner way to go - if your PerlAuthzHandler returns FORBIDDEN they will
>> never be executed.
> 
> 
> I know, but I need show custom html page (with custom error message)

you can pass anything you like from your authz handler to your content
handler using $r->pnotes :)

--Geoff

Mime
View raw message