Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 84103 invoked from network); 28 Apr 2006 16:46:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Apr 2006 16:46:44 -0000 Received: (qmail 71528 invoked by uid 500); 28 Apr 2006 16:46:38 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 71427 invoked by uid 500); 28 Apr 2006 16:46:37 -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 71416 invoked by uid 99); 28 Apr 2006 16:46:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 09:46:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: unknown (asf.osuosl.org: error in processing during lookup of jon@2xlp.com) Received: from [66.33.198.201] (HELO jareth.dreamhost.com) (66.33.198.201) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 09:46:36 -0700 Received: from [192.168.1.100] (user-10876ld.cable.mindspring.com [64.131.154.173]) by jareth.dreamhost.com (Postfix) with ESMTP id 7A7E7191111 for ; Fri, 28 Apr 2006 09:46:15 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v749.3) In-Reply-To: <4451AC8A.8020807@elem.com> References: <4451AC8A.8020807@elem.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <4F440B46-FF3E-4DAD-BD40-92FA49EE42DD@2xlp.com> Content-Transfer-Encoding: 7bit From: Jonathan Vanasco Subject: Re: putting config vars in httpd.conf Date: Fri, 28 Apr 2006 12:46:13 -0400 To: Mod_Perl Mailing List X-Mailer: Apple Mail (2.749.3) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Apr 28, 2006, at 1:47 AM, Perrin Harkins wrote: > > $My::App::DEV_MODE = 1; > Nice On Apr 27, 2006, at 11:42 PM, Geoffrey Young wrote: > http://perl.apache.org/docs/2.0/api/Apache2/ > ServerUtil.html#C_dir_config_ Ok. i'll submit a patch for PerlSetVar later. While ServerUtil says this: $s->dir_config() provides an interface for the per-server variables specified by the PerlSetVar and PerlAddVar directives, and also can be manipulated via the APR::Table methods. $table = $s->dir_config(); $value = $s->dir_config($key); @values = $s->dir_config($key); $s->dir_config($key, $val); Server configuration ( http://perl.apache.org/docs/2.0/user/config/ config.html ) says: my $foo = $r->dir_config('foo'); In this example $foo would then hold the value 'bar'. NOTE: that these directives are parsed at request time which is a slower method than using custom Apache configuration directives ===== i'll make a patch saying that one can access the dirconfig off a Apache2::ServerUtil as well this afternoon