> 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]";
>
> Am I missing something obvious?
>
> I am using Apache/1.3.9 with mod_perl/1.21 in case ut matters.
1. Do your non-dynamic configuration works as you expect it to? I mean
if you write plain mod_rewrite directives?
2. If the answer to the Q1 is "yes", you should print out the dynamically
confugured stuff, to debug the issue:
<Perl>
use Apache::PerlSections();
...
print STDERR Apache->PerlSections->dump();
</Perl>
I beleive, that once you can debug this beast, you can find where the
problem lies or at least who causes it.
_______________________________________________________________________
Stas Bekman mailto:[EMAIL PROTECTED] www.singlesheaven.com/stas
Perl,CGI,Apache,Linux,Web,Java,PC at www.singlesheaven.com/stas/TULARC
www.apache.org & www.perl.com == www.modperl.com || perl.apache.org
single o-> + single o-+ = singlesheaven http://www.singlesheaven.com