On Monday 09 July 2001 18:09, Geoffrey Young wrote:
> > From: Robin Berjon [mailto:[EMAIL PROTECTED]]
> > In order to access the configuration, I'm using (in a nutshell):
> >
> > cfg = (axkit_dir_config *)
> >         ap_get_module_config(s->module_config, &XS_AxKit);
>
> I only just skimmed the sources, but I don't think it is possible.  AxKit
> populates the per-dir config, not the per-server config, and you need a
> request record to dig out the per-dir config.

Yes, that much I know (there's a lot more to it, but I tried to boil it down 
to a simple description in order to make it palatable). Having a request 
object at server startup is not possible, or would be a hack which I'd rather 
avoid.

I added a server config creator which is an exact copy of the per-directory 
config creator to the module struct, except that it takes a server_rec as its 
second arg instead of a string. Perhaps I need to do something with that 
server_rec (eg set the module config on it instead of simply returning it), 
but I wasn't able to find anything helpful in the Apache docs (I might have 
missed though, pointers welcome).

> interesting to see what Matt says, though...

Matt probably won't be back for a while, which is why I'm posting here 
instead of pestering him directly on #axkit ;-)

-- 
_______________________________________________________________________
Robin Berjon <[EMAIL PROTECTED]> -- CTO
k n o w s c a p e : // venture knowledge agency www.knowscape.com
-----------------------------------------------------------------------
The only sensible way to estimate the stability of a Windows server 
is to power it down and try it out as a step ladder. 
-- Robert Crawford, in the Monastery

Reply via email to