At 04:25 PM 10/8/99 +0200, Terje Malmedal wrote:
>
>Hi,
>
>Inside a <Perl> section I want to configure mod_rewrite dynamically,
>this works:
>
> $RewriteRule = "/cgi-bin/printenv /cgi-bin/slave.pl [PT]";
>
>If I do this:
>
> $RewriteRule = "/cgi-bin/printenv /cgi-bin/slave.pl [PT]";
> $RewriteRule = "/cgi-bin/test /cgi-bin/slave.pl [PT]";
>
>the last RewriteRule will hide the first one.
>
>The following attempts to not work at all:
> push(@RewriteRule , "/cgi-bin/printenv /cgi-bin/slave.pl [PT]");
> push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl [PT]");
> push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl", "[PT]");
> $RewriteRule{'/cgi-bin/printenv'} = "/cgi-bin/slave.pl [PT]";
Try:
push @RewriteRule, [qw(/cgi-bin/printenv /cgi-bin/slave.pl [PT])];
(Using an arrayref for the values of the rule.)
(I have no idea if that will work or not, but that seems to be how things
like [Perl]SetEnv work.)
-------------------------------------------------------
Mark Cogan [EMAIL PROTECTED]
Director of Engineering +1 520-881-8101
ArtToday www.arttoday.com