Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 86261 invoked from network); 28 Aug 2008 10:16:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Aug 2008 10:16:13 -0000 Received: (qmail 78850 invoked by uid 500); 28 Aug 2008 10:16:07 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 78741 invoked by uid 500); 28 Aug 2008 10:16:06 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 78730 invoked by uid 99); 28 Aug 2008 10:16:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 03:16:05 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.229.52.226] (HELO grimnir.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 10:15:04 +0000 Received: from grimnir (localhost [127.0.0.1]) by grimnir.webthing.com (Postfix) with ESMTP id 4BFCC2135 for ; Thu, 28 Aug 2008 11:15:32 +0100 (BST) Date: Thu, 28 Aug 2008 11:15:30 +0100 From: Nick Kew To: dev@httpd.apache.org Subject: Re: Adding full environment variable support to mod_proxy_ajp Message-ID: <20080828111530.2525c3e7@grimnir> In-Reply-To: <51223235-2972-4430-A47E-A0BC29DD86FF@rescomp.stanford.edu> References: <51223235-2972-4430-A47E-A0BC29DD86FF@rescomp.stanford.edu> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Wed, 27 Aug 2008 23:53:24 -0700 Ian Ward Comfort wrote: > My environment is affected by bug 40047, the lack of a mod_proxy_ajp > equivalent to mod_jk's JkEnvVar directive. (The mod_rewrite > gyrations required to work around this with AJP_* vars are too > unpleasant to maintain.) If I write a patch for this feature, might > it stand a chance of upstream inclusion? If so, thoughts on the > following would be appreciated. > > * The directive should probably be handled by mod_proxy. It may be > relevant to protocols besides AJP, and mod_proxy already has > configuration objects, unlike mod_proxy_ajp. > > * A lot of the code can probably be reused from mod_jk, unless > anyone foresees a problem with this. > > * What's an appropriate name for the directive -- ProxyEnvVar? How big is this proposed patch? A patch that can be reviewed in five minutes has a lower barrier to inclusion than one that a developer has to spend all day reviewing :-) Anyway, as an alternative to your proposal, would it fix your problem if variables set using SetEnv or PassEnv - or dynamically using mod_rewrite - were propagated to the backend appserver? If so, I'd think that a nicer solution than a new directive. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/