You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bill Moseley <mo...@hank.org> on 2000/10/11 22:32:36 UTC
$r->dir_config at server startup?
Can I get the value of a PerlSetVar at startup?
# Main server config
PerlSetVar foo bar
<VirtualHost 80>
<perl>
package My::Handler;
use strict;
# Is there a way to get at 'foo'?
my $foo = Apache->dir_config('foo');
sub handler {
...
}
</perl>
Perl*Handler My::Handler;
...
</virturalhost>
Bill Moseley
mailto:moseley@hank.org
Re: $r->dir_config at server startup?
Posted by Matt Sergeant <ma...@sergeant.org>.
On Wed, 11 Oct 2000, Bill Moseley wrote:
> Can I get the value of a PerlSetVar at startup?
>
> # Main server config
> PerlSetVar foo bar
>
> <VirtualHost 80>
>
> <perl>
> package My::Handler;
> use strict;
>
> # Is there a way to get at 'foo'?
> my $foo = Apache->dir_config('foo');
Apache->server->dir_config('foo'); # IIRC
--
<Matt/>
/|| ** Director and CTO **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** Personal Web Site: http://sergeant.org/ **
\\//
//\\
// \\