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

Reply via email to