vhostgen creates vhost directives for apache. The following MYSQL table must
exist (and be populated):
CREATE TABLE `vhosts` (
`id` int(11) NOT NULL auto_increment,
`servername` varchar(255) NOT NULL,
`serveralias` varchar(255) default NULL,
`documentroot` varchar(255) NOT NULL,
`maintainer` varchar(255) default NULL,
PRIMARY KEY (`id`)
);
You can, if you like, name the table something else (if you do, remember to change
your configuration file!)
When vhostgen is executed, it'll fetch the contents of above mentioned table and
create a vhosts.conf which can be included into your httpd configuration file.
To compile and install vhostgen, issue the following commands:
./configure
make
make install
If you don't want to install the program globally you may use the --prefix
configure switch, eg:
./configure --prefix=/home/user/tools/
Comments, questions, patches, etc can be sent to Svante Kvarnström <sjk@ankeborg.nu>