> Hi I wonder how would I be able to add a perl handler in 
> front of all the
> default handlers that are being used by apache.

Try the PerlInitHandler directive.

> 
> <Location /members>
> PerlAuthHandler Moo::Auth
> PerlAuthzHandler Moo::MemberAuth
> PerlAuthzHandler Moo::MembershipType
> PerlSetvar MembershipTypeRequired Premium
> 
> ---> Here were it breaks down
> SetHandler perl-script
> PerlHandler Moo::Redirect
> 
> ---> Here what works, but makes me feel weird about that.
> PerlAuthzHandler Moo::Redirect

# Use the following instead:
PerlInitHandler Moo::Redirect

> I understand that I clobber the chain of the default handlers 
> that are used
> by apache in this case. What I am interested in is to use MY 
> perl-script
> handler first

There are several phases of Apache's response to a client request.  mod_perl
defines a handler for each.  PerlInitHandler handles a request before
PerlAuthHandler and PerlAuthzHandler.  See
http://perl.apache.org/guide/config.html#Perl_Handlers for more information.

Reply via email to