Re: Dynamic VirtualHost's

2005-03-04 Thread Marc Gràcia
Well, In our case, the server doesn't have any mod_perl apps. Only uses mod_perl (Or perl sections, i don't really know if it's the same) to dinamicaly generate the virtualhosts. That apache2 acts as a reverse proxy to controls several httpd servers  in the private lan with the mod_perl ap

Re: Dynamic VirtualHost's

2005-03-03 Thread David J Radunz
On Thu, 2005-03-03 at 11:44 +0100, Marc GrÃcia wrote: > Is not necesary to restart apache... A "graceful" do the job. > I'm using this approach, and is really quick and not visible for end > users. (I have 50 or so virtualhosts, so maybe in your case can be a > little slower). > Maybe some time

Re: Dynamic VirtualHost's

2005-03-03 Thread Marc Gràcia
Ooops cross-thread-answering.. :) Stas posted few messages above that the reload can be done inside mod_perl , so it's even easier to setup... Goehring, Chuck, RCI - San Diego wrote: > > Well, when I use cgis that run under Registry, if I modify a pm file, > I have to restart the web server be

Re: Dynamic VirtualHost's

2005-03-03 Thread Marc Gràcia
Is not necesary to restart apache... A "graceful" do the job. I'm using this approach, and is really quick  and  not visible for end users. (I have 50 or so virtualhosts, so maybe in your case can be a little slower). Maybe some time after the "graceful" we have a little more load (apache is r

Re: Dynamic VirtualHost's

2005-03-02 Thread Perrin Harkins
On Wed, 2005-03-02 at 16:18 +0100, Roman wrote: > Is it possible to dynamically create VirtualHost's using mod_perl, > taking the value of each directive in a database ? It's possible to do this with mod_perl, but I'd suggest you look at mod_vhost_dbi instead. It's a better bet for simple mass h

Re: Dynamic VirtualHost's

2005-03-02 Thread David J Radunz
Althou its not ideal - the whole procedure can be done dynamically by setting up just one VirtualHost and adding a perl handler to dynamically set the document_root :) But depending what sort of hosting your doing this solution may not be the best for you. For this to work you will need to turn can

Dynamic VirtualHost's

2005-03-02 Thread Roman
Hi all, Is it possible to dynamically create VirtualHost's using mod_perl, taking the value of each directive in a database ? If it is, how can I do exactly please ? Because actually, I'm doing things like : - push(@{ $VirtualHost{'*:80'} }, \%conf); - It works well, but with this method