Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

what handler phase as we in?

Anthony R Fletcher

2008-04-07

Replies: Find Java Web Hosting

Author LoginPost Reply
I have a module that does authentication and authorisation. In my Apache
configs I have:

 PerlAuthenHandler Apache2::AuthX::authenticate
 PerlAuthzHandler Apache2::AuthX::authorise

I'd rather just use:

 PerlAuthenHandler Apache2::AuthX
 PerlAuthzHandler Apache2::AuthX

and let the handler function Apache2::AuthX::handler() deduce what has
to be done (i.e. authenticate or authorise).

How can handlers tell which phase they are currently in?

   Anthony.

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.