On Fri, Oct 08, 2004 at 02:42:49PM +0200, Torsten FÃrtsch wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I know one can specify the handler invocation order of the request phases. But > how to do it? > > My problem is, I want to know if a request came in over http or https in the > fixup phase. With mp1 I had configured by the LoadModule order that a > mod_perl handler was called after the mod_ssl handler. Since mod_ssl sets up > subprocess_env in the fixup phase I could check subprocess_env('HTTPS') in a > mod_perl fixup handler. > > How can I define that my mod_perl fixup handler is to be called after the > mod_ssl fixup handler? > > Or how can I access the SSL related stuff from mod_perl prior to the response > phase?
The best thing to do is to use the ssl_var_lookup hook which the C interface to mod_ssl exports, or better yet, if using 2.0.51 or later, the ssl_is_https hook. This means you don't have to use "SSLOptions +StdEnvVars" to get SSL variables via subprocess_env, which adds a lot of overhead since you probably don't need most of them, and the hook orderings don't matter. You'd have to right Perl bindings for this first of course! joe -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html