>>>>> "Mike" == Mike Blazer <[EMAIL PROTECTED]> writes:
Mike> Yeah, thanks. But the whole that site has nothing to do without the
Mike> database :) It almost has no static content.
Mike> But seems like you are both right. Template would be really safer. While
Mike> this also breaks the nice concept of starting each server with apachectl
Mike> -D <name> and having all confugurables (perl vars, hashes) together in
Mike> the same file.
Solution:
generate
httpd.conf.pages
httpd.conf.proxy
using Template Toolkit. Easy'nuff. Lots of common stuff, plus unique
stuff. You can use "tpage" and then there's not even any programming:
httpd.conf.pages: httpd.conf.tmpl
tpage --define server=pages < $< > $@
httpd.conf.proxy: httpd.conf.tmpl
tpage --define server=proxy < $< > $@
then check [% IF server = 'pages'; ... ; END %] in your templates.
Make httpd.conf be simply:
<ifdefine pages>
Include httpd.conf.pages
</ifdefine>
<ifdefine proxy>
Include httpd.conf.proxy
</ifdefine>
<ifdefine !pages>
<ifdefine !proxy>
Include httpd.conf.other
</ifdefine>
</ifdefine>
Done. :)
--
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!