> -----Original Message-----
> From: Robin Berjon [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 11:58 AM
> To: [EMAIL PROTECTED]
> Subject: Accessing server config during parent startup
> 
> 
> Hi,
> 
> I'm having trouble trying to access server config directives 
> during parent 
> startup. Basically, I've got a module which needs to access a 
> configuration 
> directive in order to compile some non-Perl files to Perl 
> while the server 
> starts and before children are created so that the code they 
> generate will 
> stay shared. The directive I need access to is defined by 
> AxKit, so I can 
> play with the source code that defines it to make it 
> available to Perl at 
> that time.
> 
> 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.

interesting to see what Matt says, though...

--Geoff

Reply via email to