Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 49630 invoked from network); 4 Feb 2005 14:45:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Feb 2005 14:45:23 -0000 Received: (qmail 13735 invoked by uid 500); 4 Feb 2005 14:44:58 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 13665 invoked by uid 500); 4 Feb 2005 14:44:57 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 13596 invoked by uid 99); 4 Feb 2005 14:44:57 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from vulcan.firstnet.net.uk (HELO relay.firstnet.net.uk) (212.103.224.244) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 04 Feb 2005 06:44:56 -0800 Received: (qmail 13981 invoked by alias); 4 Feb 2005 14:44:46 -0000 Received: from unknown (HELO bigfoot.com) (212.19.69.3) by furtive.first with SMTP; 4 Feb 2005 14:44:46 -0000 Message-ID: <42038A6B.5020901@bigfoot.com> Date: Fri, 04 Feb 2005 14:44:59 +0000 From: colin_e User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: jslive@gmail.com CC: users@httpd.apache.org References: <1107468053.91870.ezmlm@httpd.apache.org> In-Reply-To: <1107468053.91870.ezmlm@httpd.apache.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked Subject: [users@httpd] Re: users Digest 3 Feb 2005 22:00:53 -0000 Issue 1893 X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I think you could achieve this by turning some or all of your config file into an "executable config" written in Perl within ... directives in httpd.conf As explained by Stas to me on this alias a few weeks ago, in principle you can write your whole config in Perl, including of course setting/using variables. This is documented to a degree in the mod_perl docs, but a full working example would be nice ;-) Regards: Colin > > ------------------------------------------------------------------------ > > Subject: > Re: [users@httpd] Is there a way to reference a variable in a > configuration file? > From: > Joshua Slive > Date: > Thu, 3 Feb 2005 15:21:03 -0500 > To: > users@httpd.apache.org > > To: > users@httpd.apache.org > > >On Thu, 03 Feb 2005 13:40:43 -0500, Glenn E. Sieb > wrote: > > >>We're using Apache 2.0.52, on Mac OSX 10.3.7 >> >>We are looking to set a variable in a configuration file, and then >>reference that variable within an included configuration file. >> >> > >The best way to do this is probably to use a tool dedicated to manging >complex config files (like m4, for example) to pre-process your >config. > >If you insist on doing it internally to apache, there are various >third-party modules that can help. One is called mod_macro. > >Joshua. > > > > ------------------------------------------------------------------------ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org