Re: autogenerating virtual hosts

2005-12-01 Thread Randal L. Schwartz
> "Tom" == Tom Schindl <[EMAIL PROTECTED]> writes: Tom>system("/bin/mkdir -p $docroot"); Tom>system("/bin/mkdir -p $docroot/logs/"); Ick. Ick ick. Ick ick ick. What's wrong with File::Path::mkpath? You'd rather fork (usually needlessly) two times per virthost? Ick. -- Ra

Re: autogenerating virtual hosts

2005-11-30 Thread JT Smith
You rock. Thanks much. On Thu, 01 Dec 2005 08:38:17 +0100 Tom Schindl <[EMAIL PROTECTED]> wrote: Hi, there are many examples how this is working, here is a snippet found in a mail sent to the list by Andreas Krüger: httpd.conf: --8<-- use DBI;

Re: autogenerating virtual hosts

2005-11-30 Thread Tom Schindl
Hi, there are many examples how this is working, here is a snippet found in a mail sent to the list by Andreas Krüger: httpd.conf: --8<-- use DBI; # Declare and initialize variables my $host = 'localhost'; my $db = 'domains'; my $db_user = 'apache

autogenerating virtual hosts

2005-11-30 Thread JT Smith
The config files for my application are very detailed. So detailed in fact that they contain everything necessary to generate a virtual host from the preloader script. The question is, can I do that? Is it possible to add virtual hosts on the fly during preload and, if so, how do I do it? Can an