Return-Path: Delivered-To: apmail-modperl-archive@apache.org Received: (qmail 84277 invoked by uid 500); 18 Feb 2002 13:40:51 -0000 Mailing-List: contact modperl-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@apache.org Received: (qmail 84264 invoked from network); 18 Feb 2002 13:40:51 -0000 MIME-Version: 1.0 From: Andrew Green To: modperl@apache.org Date: Mon, 18 Feb 2002 13:31:57 +0000 (GMT) Subject: PerlPassEnv and Proxies Message-ID: <4b0abe5012andrew@article7.co.uk> User-Agent: Pluto/2.02b (RISC-OS/3.70) POPstar/2.03 Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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)/(.*)$ http://spare.article7.co.uk:8080/page/$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 corrected. Many thanks in advance, Andrew. -- "It seems today that all you see are violins in movies and sax on TV."