perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Green <>
Subject PerlPassEnv and Proxies
Date Mon, 18 Feb 2002 13:31:57 GMT
Hi all,

I'm using a typical dual-server combination for mod_perl content on a
selection of sites.  Requests go to the vanilla Apache and a
mod_rewrite/mod_proxy combo forward them on to the mod_perl Apache.

As part of this, I'm trying to allow a prefix to the URL path to set an
environment variable I can then use in my mod_perl programs to determine
databases, templates etc.

The vanilla httpd.conf features a line thus:

   RewriteRule ^/(test|access|ewok)/(.*)$$2 [P,E=A7_FRAMEWORK:$1,L]

(ignoring the wrapping).  I also set PerlPassEnv A7_FRAMEWORK in my
mod_perl httpd.conf -- but that environment variable always remains
undef. The order of the P,E,L flags doesn't seem to make a difference.

I appreciate that this is perhaps more of a mod_proxy issue than a
mod_perl one, but I suspect I'm not alone in having tried something
similar.  I haven't found anything in the guide that deals with this
specifically (I really don't want to append the information as a query
string), but if I've overlooked anything, I'd be very happy to be

Many thanks in advance,

"It seems today that all you see are violins in movies and sax on TV."

View raw message