Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6BE3D1849D for ; Thu, 16 Jul 2015 00:19:56 +0000 (UTC) Received: (qmail 90786 invoked by uid 500); 16 Jul 2015 00:19:56 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 90745 invoked by uid 500); 16 Jul 2015 00:19:55 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 90732 invoked by uid 99); 16 Jul 2015 00:19:55 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2015 00:19:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 386E9C047E for ; Thu, 16 Jul 2015 00:19:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.011 X-Spam-Level: X-Spam-Status: No, score=-0.011 tagged_above=-999 required=6.31 tests=[SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7Kyzbay-Tngy for ; Thu, 16 Jul 2015 00:19:43 +0000 (UTC) Received: from smtp.jhmg.net (smtp.jhmg.net [45.55.176.36]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 2205642AA9 for ; Thu, 16 Jul 2015 00:19:43 +0000 (UTC) Received: from [192.168.10.236] (c-50-137-136-169.hsd1.or.comcast.net [50.137.136.169]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.jhmg.net (Postfix) with ESMTPSA id B51EA40312 for ; Wed, 15 Jul 2015 20:19:42 -0400 (EDT) Message-ID: <55A6F89D.303@jhmg.net> Date: Wed, 15 Jul 2015 17:19:41 -0700 From: Jim Garrison Reply-To: jhg@acm.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: modperl@perl.apache.org Subject: Re: PerlSetVar inside doesn't seem to work References: <55A6F5D8.505@jhmg.net> In-Reply-To: <55A6F5D8.505@jhmg.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 7/15/2015 5:07 PM, Jim Garrison wrote: > I have the following config > > [snip] > > However it's getting empty strings for the values. This was working > when the PerlSetVar directives were outside the VirtualHost block. It seems when you access dir_config through the ServerRec you only get values set at the server level. To get the VirtualHost level variables you must use the RequestRec. Makes sense, I guess. Thanks to John Dunlap... your example pointed me in the right direction. -- Jim Garrison (jhg@acm.org) PGP Keys at http://www.jhmg.net RSA 0x04B73B7F DH 0x70738D88