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 07B36D306 for ; Tue, 26 Feb 2013 21:41:11 +0000 (UTC) Received: (qmail 66938 invoked by uid 500); 26 Feb 2013 21:41:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 66709 invoked by uid 500); 26 Feb 2013 21:41:07 -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 66700 invoked by uid 99); 26 Feb 2013 21:41:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 21:41:07 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.30.56] (HELO qmta06.emeryville.ca.mail.comcast.net) (76.96.30.56) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 21:41:00 +0000 Received: from omta16.emeryville.ca.mail.comcast.net ([76.96.30.72]) by qmta06.emeryville.ca.mail.comcast.net with comcast id 57wN1l0031ZMdJ4A69gdAF; Tue, 26 Feb 2013 21:40:37 +0000 Received: from Christophers-MacBook-Pro.local ([173.240.244.126]) by omta16.emeryville.ca.mail.comcast.net with comcast id 59eU1l00E2kM1ZZ8c9eWQs; Tue, 26 Feb 2013 21:38:34 +0000 Message-ID: <512D2B50.6020105@christopherschultz.net> Date: Tue, 26 Feb 2013 13:38:24 -0800 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130216 Thunderbird/17.0.3 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: mod_jk how to add JK_WORKER_NAME to http-header References: <512D01E8.904@kepol.com> In-Reply-To: <512D01E8.904@kepol.com> X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1361914837; bh=R7XvQIyC3WnJ+ZUabmR0hjJ4sXygqeb22ubKRsnzlPE=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=By6adibcDwre5Pd/+2+Qt2WmdLz9xPHJxEOCZWYhhUh31MBp16hc6pnEmgkPGY3HD uHzVgFuL7JHMdFShAli0JnGGTR2rJENrroWHCXol+AX6EM7mCxFqnK0qVOsQNl7/cV 5VzaLLwh3dfLgBAOlZQMDpq/43kSX61bJ39o21eGDknGg8FHwBjb2Y1BGzvEx40bKV sJJ+kJCrCx0kdR+w5yNl8h/nP1R2p4J7yeRS2G3W4w6hN4UWFlNY0l12bA19NAH14e Pl9X7HiJqx6d3GwW4MTQJq3M3R3TsXrL7KHL6raO++7z8Qy0kCGHEleisE0yKYCoKd Z0k+VXddQvYjA== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jochen, On 2/26/13 10:41 AM, Jochen Wißmann wrote: > I tried to get something like this working: > > httpd.conf: ... Header add TC-Server "%{JK_WORKER_NAME}e" This looks like it should work from my brief review of the documentation. > < TC-Server: (null) > > Why do i get "TC-Server: (null)" ? Using the Variable > JK_WORKER_NAME to log the worker's name via mod_log_config works > fine. > > Am i missing something? Is it even possible to access the > env-variable JK_WORKER_NAME with module mod_header? The httpd documentation says so. Can you give us more of your httpd.conf? Perhaps the "Header" directive isn't in a place where the environment variable has been set, goes out of scope, etc. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlEtK1AACgkQ9CaO5/Lv0PAdmwCgvDx2p5ZNdLAU6E7xXIg4uuu6 tCcAoLWtF78/eXNDXvmV2FeR6TIOq0qj =f/sj -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org