On Friday, October 08, 1999 4:26 PM, Terje Malmedal [SMTP:[EMAIL PROTECTED]] 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]";
> 

This should work (from the book, chapter 8):

@RewriteRule = (
        [ "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]" ],
        [ "/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]";
> 
> Am I missing something obvious? 
> 
> I am using Apache/1.3.9 with mod_perl/1.21 in case ut matters. 
> 
> -- 
>  - Terje
> [EMAIL PROTECTED]

--
Eric

Reply via email to