On Thursday 09 August 2001 22:38, Marc Slemko wrote:
> On Thu, 9 Aug 2001, Ryan Bloom wrote:
> > On Thursday 09 August 2001 22:06, Paul Bayley wrote:
> > > >you can make your module's ap_hook_type_checker get called before
> > > >mod_mime's hook. but I think this is a server-wide setting, not a
> > > >directory setting.
> > >
> > > Is there any way to change the priority per directory?
> >
> > No. It would be a pretty big performance hit to re-order our module
> > lists for every directory.
>
> ...but you can cheat somewhat for the presumably limited requirements
> here.
>
> Have your module consist of two modules using the same code behind
> them. One is added before mod_mime, one after. Then have a config
> directive that lets you set which is actually used for a given
> directory.
>
> Ugly? Inflexible? Single purposed? Sure. A way to do it... maybe.
Yeah, that would work. Actually, you could do this even easier with just one
module. That module would register the same function twice, once before mod_mime,
and once after. Because Apache 2.0 does module ordering per-function, you
don't need to duplicate any code at all. :-)
Ryan
_____________________________________________________________________________
Ryan Bloom [EMAIL PROTECTED]
Covalent Technologies [EMAIL PROTECTED]
-----------------------------------------------------------------------------