You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Eric Frazier <ef...@kwinternet.com> on 2002/07/25 13:08:35 UTC
reading an ENV with Perl that was set with mod_rewrite [E= : ]
Hi,
Has anyone used mod_rewrite to set an environmental variable based on the
result of a reg exp?
For example:
RewriteRule ^/pt=([^/]+)?(.*) /home/me.com/public_html/$2 [E=PT:$1]
I can get a static url like:
RewriteRule /perl /usr/local/apache/perl/printenv [E=ERIC:bob]
to work, but the first one I can't. PT doesn't exist, but ERIC does.
I know this is not exactly on topic, but it is a weird sort of issue, the
admin I was dealing with said he could get the above ENV with PHP or
mod_perl but not with perl CGI's I can't seem to get it with a mod_perl
Registry script either though.
Thanks,
Eric
http://www.kwinternet.com/eric
(250) 655 - 9513 (PST Time Zone)
"Inquiry is fatal to certainty." -- Will Durant