perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Vanasco <>
Subject Re: putting config vars in httpd.conf
Date Fri, 28 Apr 2006 16:46:13 GMT

On Apr 28, 2006, at 1:47 AM, Perrin Harkins wrote:
> <Perl>
>   $My::App::DEV_MODE = 1;
> </Perl>


On Apr 27, 2006, at 11:42 PM, Geoffrey Young wrote:
> ServerUtil.html#C_dir_config_

Ok.  i'll submit a patch for PerlSetVar later.

While ServerUtil says this:
	$s->dir_config() provides an interface for the per-server variables  
specified by the PerlSetVar and PerlAddVar directives, and also can  
be manipulated via the APR::Table methods.
	$table = $s->dir_config();
	$value = $s->dir_config($key);
	@values = $s->dir_config($key);
	$s->dir_config($key, $val);

Server configuration ( 
config.html ) says:

my $foo = $r->dir_config('foo');
In this example $foo would then hold the value 'bar'. NOTE: that  
these directives are parsed at request time which is a slower method  
than using custom Apache configuration directives


i'll make a patch  saying that one can access the dirconfig off a  
Apache2::ServerUtil as well this afternoon

View raw message