[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: $r->handler and $r->set_handlers on all files


Sergij Borodych wrote:
> Hi,
> 
> I have configuration:
> apache-2.0.59
> mod_perl-2.0.3
> 
> <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.

--Geoff


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.