Hi,

I'm defining my own directives to configure a perl module.

I try to have the default behavior described in the doc 6.3.7 "child
container inherits its parent configuration, unless it specifies its own
and then overrides its parent configuration".

My config stanza for the parent is :

<Proxy http://james/demo/*>
        ...
        MAHBasicAuth On
        MAHBasicAuthPrefix "global"
        ...
</Proxy>

and for the child :

<Proxy http://james/demo/subdir/*>
        ...
        MAHBasicAuth Off
        MAHBasicAuthPrefix "subdir"
        ...
</Proxy>

In the handler, I retrieve my config using 

my $dir_cfg = Apache2::Module::get_config('Apache2::mod_auth_headers',
$r->server, $r->per_dir_config);
my $MAHBasicAuth = $dir_cfg->{MAHBasicAuth};
my $MAHBasicAuthPrefix = $dir_cfg->{MAHBasicAuthPrefix};

But I always get the value "On" and "global", even if my request goes to
"subdir/".

What do I do wrong ? Do I have to do something special when I register
the new directives ?

TIA,
Charles

-- 
Charles Bueche <[EMAIL PROTECTED]>
sand, snow, wave, wind and net -surfer

Reply via email to