You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Dorian Taylor <do...@foobarsystems.com> on 2005/05/18 22:08:13 UTC

[mp2] enforcing the order of mod_perl with other modules

i was under the impression that for each phase in the request,
modules were hooked in the order they were loaded. has this behavior
changed? is there any way to force mod_rewrite, for example, to
operate before mod_perl in the transhandler phase?

cheers

.dorian

Re: [mp2] enforcing the order of mod_perl with other modules

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
Dorian Taylor wrote:
>>in apache 1.3 yes, just change the order of the modules with LoadModule
>>or ClearModuleList+AddModule.  in 2.0 you need to alter the mod_rewrite
>>or mod_perl sources, unfortunately.
> 
> 
> yeah i just looked at that. what happend to Apache2::Hook?

I'm not sure what you're talking about.  for a while I was working on a
way to dynamically reorder the module list in httpd core, but it seemed
to have problems on win32, I ran out of time, etc, so it never came to
fruition.

--Geoff

Re: [mp2] enforcing the order of mod_perl with other modules

Posted by Dorian Taylor <do...@foobarsystems.com>.
> in apache 1.3 yes, just change the order of the modules with LoadModule
> or ClearModuleList+AddModule.  in 2.0 you need to alter the mod_rewrite
> or mod_perl sources, unfortunately.

yeah i just looked at that. what happend to Apache2::Hook?

.dorian

Re: [mp2] enforcing the order of mod_perl with other modules

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
Dorian Taylor wrote:
> i was under the impression that for each phase in the request,
> modules were hooked in the order they were loaded. has this behavior
> changed? is there any way to force mod_rewrite, for example, to
> operate before mod_perl in the transhandler phase?

in apache 1.3 yes, just change the order of the modules with LoadModule
or ClearModuleList+AddModule.  in 2.0 you need to alter the mod_rewrite
or mod_perl sources, unfortunately.

HTH

--Geoff