Re: Configuring virtual hosts on the fly

2009-10-14 Thread Scott Gifford
Scott Gifford writes: [...] > I see some hooks in PerlTransHandler and PerlMapToStorageHandler that > seem like they can almost do what I want, but I don't see how to set > other virtual host parameters, like ServerAdmin, UseCanonicalName, > etc. I was able to get something I like working in Pe

Re: Configuring virtual hosts on the fly

2009-10-13 Thread Scott Gifford
Joel Richard writes: > I thought I'd weigh in on two items of note > > On Oct 13, 2009, at 12:17 PM, Scott Gifford wrote: > >> When I have done this in the past, I have done it with generating >> configuration files, so of course one misplaced newline or >> angle-bracket will kill the server.

Re: Configuring virtual hosts on the fly

2009-10-13 Thread Michael Peters
On 10/13/2009 12:17 PM, Scott Gifford wrote: I have had mixed experiences in the past with automatically restarting Apache after a configuration change. It is very easy to end up with something unexpected in the configuration, which causes the configuration to fail, which causes apache to stop.

Re: Configuring virtual hosts on the fly

2009-10-13 Thread Joel Richard
I thought I'd weigh in on two items of note On Oct 13, 2009, at 12:17 PM, Scott Gifford wrote: When I have done this in the past, I have done it with generating configuration files, so of course one misplaced newline or angle-bracket will kill the server. Maybe generating the configuration

Re: Configuring virtual hosts on the fly

2009-10-13 Thread Scott Gifford
"Ryan Yagatich" writes: > What about mod_vhost_alias? ( > http://httpd.apache.org/docs/2.0/mod/mod_vhost_alias.html ) > > > 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 p

Re: Configuring virtual hosts on the fly

2009-10-13 Thread Scott Gifford
Michael Peters writes: > Looking at this from a different perspective, have you tried writing a > monitoring program that looks for updates to the database and then > would restart the appropriate apache servers on the various > machines. It would do them one at a time (taking them out of rotatio

Re: Configuring virtual hosts on the fly

2009-10-13 Thread Michael Peters
Looking at this from a different perspective, have you tried writing a monitoring program that looks for updates to the database and then would restart the appropriate apache servers on the various machines. It would do them one at a time (taking them out of rotation from your load balancer). I

RE: Configuring virtual hosts on the fly

2009-10-13 Thread Ryan Yagatich
. This allows for easy use of a huge number of virtual hosts with similar configurations. -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

Re: Configuring virtual hosts on the fly

2009-10-13 Thread William T
On Tue, Oct 13, 2009 at 8:08 AM, Scott Gifford wrote: >> 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"

Re: Configuring virtual hosts on the fly

2009-10-13 Thread Scott Gifford
Thanks William, comments inline... William T writes: > On Sun, Oct 11, 2009 at 11:54 AM, Scott Gifford > 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

Re: Configuring virtual hosts on the fly

2009-10-13 Thread William T
On Sun, Oct 11, 2009 at 11:54 AM, Scott Gifford 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

Re: Configuring virtual hosts on the fly

2009-10-12 Thread Adam Prime
Scott Gifford wrote: > Hello, > > I'm working on an Apache configuration for a cluster of machines > serving a variety of virtual hosts. > > New virtual hosts are provisioned by a Web application, and all > information needed to set up the virtual hosts is in a database table. > I would like my A

Re: Configuring virtual hosts on the fly

2009-10-12 Thread Torsten Foertsch
On Sun 11 Oct 2009, André Warnier wrote: > > I see some hooks in PerlTransHandler and PerlMapToStorageHandler > > that seem like they can almost do what I want, but I don't see how > > to set other virtual host parameters, like ServerAdmin > > http://perl.apache.org/docs/2.0/api/Apache2/ServerRec.h

Re: Configuring virtual hosts on the fly

2009-10-11 Thread André Warnier
Scott Gifford wrote: Hello, I'm working on an Apache configuration for a cluster of machines serving a variety of virtual hosts. New virtual hosts are provisioned by a Web application, and all information needed to set up the virtual hosts is in a database table. I would like my Apache to set u

Configuring virtual hosts on the fly

2009-10-11 Thread Scott Gifford
Hello, I'm working on an Apache configuration for a cluster of machines serving a variety of virtual hosts. New virtual hosts are provisioned by a Web application, and all information needed to set up the virtual hosts is in a database table. I would like my Apache to set up the virtual hosts on