Thomas Nagel wrote:
Hi list,

I wrote an Apache Configuration Directive which works fine. Now it should also work with VirtualHosts so I try to use the following borrowed from 'Writing Apache Modules with Perl and C':

sub PerlMIHConfig ($$$) {
    my($cfg, $parms, $file) = @_;
    my $scfg = Apache::ModuleConfig->get($parms->server());
}

that looks just fine to me. you shouldn't need it, but try to


use Apache::CmdParms;

at the top of your script, just in case.


Can't locate object method "server" via package "Apache::CmdParms" at /usr/local/lib/perl/5.8.0/Apache/MIHConfig.pm line 35.


Am I missing something or could someone give me a hint where to find the Apache::CmdParms doku (seems to come none with my installation ;-)

recipes 7.8, 7.9, and (specfically) 7.10 in the mod_perl developer's cookbook talk about Apache::CmdParms, so that might help.


http://www.modperlcookbook.org/chapters/ch07.pdf

--Geoff





Reply via email to