>>>>> "BeerBong" == BeerBong <[EMAIL PROTECTED]> writes:
BeerBong> I want to generate single httpd.conf file with Template::Toolkit for BeerBong> front-end and back-end servers. BeerBong> I didn't find how to make Apache gets httpd.conf text from script, BeerBong> plain text file only. BeerBong> Should I place call to generation httpd.conf in apachectl? Or start BeerBong> regeneration script manually after changes? BeerBong> Such way doesn't allow reread configuration while HUP signal is BeerBong> recieved, as I think... For www.stonehenge.com, the httpd.conf is an ordinary file, but it's generated from a TT source template during "build" time. All the sources to the site are in CVS, and a final step is needed to go from the CVS files to the live site setup. This step is controlled by a Makefile, so if the site is edited, the build process takes the minimum steps needed to update the live data, finally issuing the HUP signal to go "live". BeerBong> I'm planning to generate conf file from database in the future... Once you're using TT to generate the httpd.conf, it'd be easy to add calls the [% USE dbi = ... %] to pull the variant information from a database at "build" time. I've got an article on this in an upcoming Linux Magazine article. You can either watch www.linuxmag.com, or my site at http://www.stonehenge.com/merlyn/LinuxMag/ for the details. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
