Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD175DEA5 for ; Wed, 19 Sep 2012 12:08:58 +0000 (UTC) Received: (qmail 37495 invoked by uid 500); 19 Sep 2012 12:08:55 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 37296 invoked by uid 500); 19 Sep 2012 12:08:51 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 37169 invoked by uid 99); 19 Sep 2012 12:08:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 12:08:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 12:08:42 +0000 Received: from [192.168.245.129] (montserrat.wissensbank.com [212.85.37.175]) by tor.combios.es (Postfix) with ESMTPA id 1FA5CDA058A for ; Wed, 19 Sep 2012 14:08:20 +0200 (CEST) Message-ID: <5059B5B1.9080806@ice-sa.com> Date: Wed, 19 Sep 2012 14:08:17 +0200 From: =?UTF-8?B?QW5kcsOpIFdhcm5pZXI=?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Accessing CoyoteRequest attributes in a Servlet References: <505872EB.3070703@gmail.com> <5058775F.9000300@ice-sa.com> <50587B6D.3060609@ice-sa.com> <5058FD57.6020904@christopherschultz.net> In-Reply-To: <5058FD57.6020904@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Christopher Schultz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > André, > > On 9/18/12 9:47 AM, André Warnier wrote: >> Still talking about mod_jk, basically anything you set in Apache >> httpd using "SetEnv" for example, gets passed to Tomcat as a >> request attribute, through the AJP protocol. > > You need to use JkEnvVar if it's something non-standard (which I > suspect Phillip's variables are). > You are right, my apologies. I was a bit quick answering the OP's questions. So, with correction applied : if you are using mod_jk as the Apache/Tomcat connector, then any Apache httpd "environment variable" (that's what Apache httpd doc calls the values set via e.g. "SetEnv") /can/ be passed to Tomcat, as a request attribute, by using the JkEnvVar directive in the Apache httpd configuration. See here : http://tomcat.apache.org/connectors-doc/reference/apache.html (and read the whole JkEnvVar paragraph carefully, for some limitations) Since I am not frequently using the mod_proxy_ajp connector, I do not know if a similar capability exists with it. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org