Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 27346 invoked from network); 30 Oct 2006 16:24:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2006 16:24:39 -0000 Received: (qmail 360 invoked by uid 500); 30 Oct 2006 16:24:39 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 343 invoked by uid 500); 30 Oct 2006 16:24:39 -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 332 invoked by uid 99); 30 Oct 2006 16:24:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 08:24:39 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of moseley@hank.org designates 63.205.225.170 as permitted sender) Received: from [63.205.225.170] (HELO mardy.hank.org) (63.205.225.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 08:24:23 -0800 Received: from [192.168.1.2] (helo=bumby ident=mail) by mardy.hank.org with esmtp (Exim 4.50) id 1GeZvd-0000Dk-TC for users@httpd.apache.org; Mon, 30 Oct 2006 08:24:01 -0800 Received: from moseley by bumby with local (Exim 3.36 #1 (Debian)) id 1GeZve-0006cc-00 for ; Mon, 30 Oct 2006 08:24:02 -0800 Date: Mon, 30 Oct 2006 08:24:02 -0800 From: Bill Moseley To: users@httpd.apache.org Message-ID: <20061030162401.GB3578@hank.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] variable substitution in httpd.conf Bad subject, but I normally generate my httpd.conf files via a templating system so this isn't an issue, but yesterday I was working on a config that listened on multiple IP addresses for name-based virtual hosting. That is: Listen 1.1.1.1:80 Listen 1.1.1.2:80 NameVirtualhost 1.1.1.1:80 ServerName foo ServerName bar NameVirtualhost 1.1.1.2:80 ServerName foo ServerName bar I was wondering if there is a way to write that symbolically as I do when using a templating system to build httpd.conf? The reason this came up is I was moving to new IP addresses and was wondering why I was typing the same value in more than one place. That is: address_1 = 1.1.1.1:80 address_2 = 1.1.1.2:80 Listen address_2 Listen address_2 NameVirtualaddress_ address_1 ServerName foo ServerName bar NameVirtualaddress_ address_2 ServerName foo ServerName bar -- Bill Moseley moseley@hank.org --------------------------------------------------------------------- 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