What about mod_vhost_alias? (
http://httpd.apache.org/docs/2.0/mod/mod_vhost_alias.html )

<quote>
Summary

This module creates dynamically configured virtual hosts, by allowing the IP
address and/or the Host: header of the HTTP request to be used as part of
the pathname to determine what files to serve. This allows for easy use of a
huge number of virtual hosts with similar configurations.
</quote>




-----Original Message-----
From: Scott Gifford [mailto:sgiff...@suspectclass.com] 
Sent: Tuesday, October 13, 2009 11:09 AM
To: William T
Cc: modperl@perl.apache.org
Subject: Re: Configuring virtual hosts on the fly

Thanks William, comments inline...

William T <dietbud...@gmail.com> writes:

> On Sun, Oct 11, 2009 at 11:54 AM, Scott Gifford
> <sgiff...@suspectclass.com> wrote:
>> Hello,
>>
>> I'm working on an Apache configuration for a cluster of machines
>> serving a variety of virtual hosts.
>
> I would not try to unify disparate configs into one unless each server
> is actually going to service all the virtual hosts your pulling in.
> You would unnecessarily couple configs together that don't need to
> be.

Each server will actually service all of the virtual hosts, so there
won't be anything unnecessary there.

[...]

> Sounds like you might be pushing the envelope on what Apache can
> actually do.  If you cannot solve the problem in Apache you could
> consider relying on Apache default vhost as a way to funnel all
> requests into a Perl "dynamic vhost" implementation.  You get exactly
> what your looking for, but you tradeoff the speed and maturity of
> Apache vhost code for yours.

Thanks, I will definitely take a look!  Do you have any recommended
reading on this, or just what Google turns up for "dynamic vhost"?

Thanks again!

---Scott.

Reply via email to