On 2002.05.27 15:39 Per Einar Ellefsen wrote:
> At 21:13 27.05.2002, Ian D. Stewart wrote:
>> Is it possible to reference the value of one Directive within
>> another Directive (e.g., PerlSetVar VariableName
>> ${DocumentRoot}/subdir) ?
>
> If you use <Perl> sections, yes.
>
> <Perl>
> $DocumentRoot = '/home/httpd/htdocs';
> push @PerlSetVar, [ VariableName => "$DocumentRoot/subdir"];
> </Perl>
Thanx Per. I thought of something like that after I sent out the
message, though wasn't sure of the syntax.
>
> Note that you need to set $DocumentRoot in a <Perl> section as well.
So Directives declared outside the <Perl> section (e.g., ServerRoot,
DocumentRoot, etc) are not accessible within the <Perl> section?
>
> You might want to look at mod_macro too.
Will do.
Thanx,
Ian