Re: [MP2] Accessing custom config directives from an PostConfig handler

[prev] [thread] [next] [Date index for 2005/05/23]

From: Geoffrey Young
Subject: Re: [MP2] Accessing custom config directives from an PostConfig handler
Date: 15:16 on 23 May 2005

Torsten Foertsch wrote:
> Hi,
> 
> I have created my own configuration directives with Apache2::Module::add. How 
> can I access the values from an PostConfig handler?
> 
> I have got it working with the main server. But if my directives are inside a 
> VirtualHost they are not accessible.

> Apache2::ServerUtil->server

IIRC the issue is that in post-config you aren't actually attached to a
server, so you need to iterate the list of servers and find the one (by name
I guess) that you are intersted in.  IIRC there were some examples in the
archives of how to do this.  at the very least you can check out
mod_rewrite, which I belive does exactly that (in C though :)

HTH

--Geoff

Re: [MP2] Accessing custom config directives from an PostConfig handler
Geoffrey Young 15:16 on 23 May 2005

Generated at 20:12 on 05 Jun 2005 by mariachi v0.52