Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 68725 invoked from network); 13 Jan 2006 00:42:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jan 2006 00:42:36 -0000 Received: (qmail 49078 invoked by uid 500); 13 Jan 2006 00:42:23 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 49060 invoked by uid 500); 13 Jan 2006 00:42:23 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 49049 invoked by uid 99); 13 Jan 2006 00:42:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2006 16:42:23 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jslive@gmail.com designates 64.233.162.198 as permitted sender) Received: from [64.233.162.198] (HELO zproxy.gmail.com) (64.233.162.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2006 16:42:21 -0800 Received: by zproxy.gmail.com with SMTP id q3so537207nzb for ; Thu, 12 Jan 2006 16:42:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s+/ZKyKdGgci6kNl4vPK2o/KD+nNXyMa5KluQRBmjqa9GENBDHMjvjX0ro2RvdrPjLR3QkLsu4x/TdyXcvNM5m1nQaA1cxUzzJZ8Zv4Xe3+0HVT9K7L6cz1xsqIyETWRyg4muYnHKnu2MKhEy1eAPu520tBlPT9qagh4CQIuOFs= Received: by 10.65.183.7 with SMTP id k7mr1378229qbp; Thu, 12 Jan 2006 16:42:00 -0800 (PST) Received: by 10.64.253.3 with HTTP; Thu, 12 Jan 2006 16:42:00 -0800 (PST) Message-ID: Date: Thu, 12 Jan 2006 19:42:00 -0500 From: Joshua Slive Sender: jslive@gmail.com To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8C29B2F93BAE9047A906EF6D6F9C5D43012F9836@exchange2k301.gaia.fr> <03c601c617bf$15c963b0$1f5c7580@globe.ucar.edu> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Conf file macros? X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 1/12/06, httpd2@karsites.net wrote: > > The module module_env is used to define variables in the > config file, or pass variables from the shell to the apache > environment. > > # define the environment variable > SetEnv SrvRoot /usr/local/apache2 > > I'm not sure of the syntax to use the variable though. > As you say the docs are a bit vague to say the least! See: http://httpd.apache.org/docs/2.2/env.html I believe you can actually use env variables (set outside apache) in the config files using a syntax like ${var}, although it is undocumented. You are better off pre-processing your config file with m4 or something similar or using a third-party module like 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