walinsky has asked for the wisdom of the Perl Monks concerning the following question:
In a perl-module, I'd like to peek into a vhost/dir config like $r->dir_config defined outside the scope of my request/module.
I do know both the (name of the) vhost, and the <directory/>;
how do I access these params ?
(adding insult to injury)
As the parameters are required at request-time, I even need parameters
parsed from (any) .htaccess files for given <directory/>
(update) Rephrasing:
I'd like to walk the conf tree of the apache webserver, and retrieve config variables (even those inserted by .htaccess files at request time), like for example: 'Dav on'
Final goal would be to manipulate these variables at request time, like $r->add_config();
(which leaves me the following problem - 'Dav on' can only reside within <directory/> or <location/> tags, so $r->add_config(); throws 'not allowed'. Does anyone have a solution for this ?
Comment on mod_perl - peeking into other vhosts/dir-config params