You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Les Mikesell <le...@home.com> on 2000/10/01 00:11:45 UTC

Re: One httpd.conf for both apache heavy and apache-light [IfModule]

----- Original Message -----
From: "Robin Berjon" <ro...@knowscape.com>
To: "martin langhoff" <ma...@scim.net>
Cc: <mo...@apache.org>
Sent: Saturday, September 30, 2000 2:53 PM
Subject: Re: One httpd.conf for both apache heavy and apache-light
[IfModule]


> It is indeed a bit of a configuration nightmare when vhosts add up (even
> though it's well worth the trouble). What I do is use both IfModule to
> merge both confs and mod_macro to factor out the repetitive bits. It works
> quite well and at any rate the win of splitting into two httpds overweighs
> the configuration overhead, but I'm still not completely happy. Half of me
> is thinking about using Include to try and break up the conf file into
> smaller bits and the other half wants to write something that would help
> automate the configuration completely. It's possible on the mod_perl side
> if you write your conf in Perl, but it's more troublesome on the plain
> Apache side. If anyone has a silver bullet for this (well, I'll settle for
> a good solution that makes my life easier ;) I'd gladly hear it.

The problem with conditionals and includes is that the light/heavy httpds
tend to have almost nothing in common except the DocumentRoot and
they may not even be on the same machines.  Some sort of template
mechanism might work with postprocessing to spit out the front and
back end config files, but then you have yet-another-syntax to learn.
I usually just open both files in different windows and cut and paste
to make any common changes.

   Les Mikesell
     lesmikesell@home.com