Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

Best Practices for managing repetitive Apache config file entries?

Mark Stosberg

2009-11-06

Replies: Find Java Web Hosting

Author LoginPost Reply

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.

Here's my outline for now we might do this. Are there other options
that work well for you?


1. We would be a template of Apache configs unders source control.
2. When the template changes, we'll run a script to generate all the
sections. Apache would pull this in as an include file.

In the event a launch is rolled back, the template could reverted to an
older version, and the include-file could be regenerated from the older
version.

Sound reasonable? What else would you recommend?

  Mark



--
. . . . . . . . . . . . . . . . . . . . . . . . . . .
 Mark Stosberg        Principal Developer
 mark@(protected)  
 765-939-9301 ext 202   database driven websites
. . . . . http://www.summersault.com/ . . . . . . . .


©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.