Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 72184 invoked from network); 6 Nov 2009 19:43:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Nov 2009 19:43:40 -0000 Received: (qmail 71391 invoked by uid 500); 6 Nov 2009 19:43:38 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 71369 invoked by uid 500); 6 Nov 2009 19:43:38 -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 71361 invoked by uid 99); 6 Nov 2009 19:43:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 19:43:38 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcam-modperl@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 19:43:34 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N6Ui6-00052G-Gs for modperl@perl.apache.org; Fri, 06 Nov 2009 20:43:02 +0100 Received: from frigga.summersault.com ([12.161.105.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Nov 2009 20:43:02 +0100 Received: from mark by frigga.summersault.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Nov 2009 20:43:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: modperl@perl.apache.org From: Mark Stosberg Subject: Re: Best Practices for managing repetitive Apache config file entries? Date: Fri, 6 Nov 2009 14:42:44 -0500 Lines: 44 Message-ID: <20091106144244.6eda7046@summersault.com> References: <20091106133023.30504f41@summersault.com> <16f65d000911061102s75ee49e8s4accc147e2244891@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: frigga.summersault.com X-Newsreader: Claws Mail 3.7.3 (GTK+ 2.12.9; i486-pc-linux-gnu) Sender: news On Fri, 6 Nov 2009 11:02:55 -0800 Bill Moseley wrote: > On Fri, Nov 6, 2009 at 10:30 AM, Mark Stosberg wrote: > > > > > I'm working on a mod_perl project where we would like to implement to > > Apache related goals: > > > > 1. Automate repetitive configurations. For developers, we repeat the > > same configs with the only difference being the "~user" location. In > > other cases, the differences are not far from s/alpha/beta. > > > > 2. Put the Apache configurations under source control. Here the goal is > > to tie changes to the Apache configs to other code changes in the > > project. > > > > I generate httpd.conf files on the fly (i.e. when I start Apache) from > Template toolkit and YAML files. > > The script merges the configurations from multilple YAML files -- i.e. form > a main config.yaml file and then when, say, running on "staginge", from > staging.yml. Then it merges with a local file which allows individual > developers to override settings in their home directory. Then the > apache-specific config is passed to a script that builds the httpd.conf > files and starts (or stops) apache. That's another interesting approach to consider. I should also mention we use several of the Apache configs under CGI as part of our development model, so our solution won't be modperl-specific. (And I appreciate this approach is not modperl-specific). Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer mark@summersault.com Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . .