On Fri, Feb 05, 1999 at 09:51:00PM +1100, Craig Sanders wrote: > here's a first cut at the apache part of the job. only took about half > an hour (but i cheated...i've done very similar stuff before :-). it > works. comments would be appreciated.
of course, i made a few stupid mistakes. diff -r1.1 make-apache-conf.pl 13c13 < # $Id: make-apache-conf.pl,v 1.1 1999/02/05 10:26:11 root Exp $ --- > # $Id: make-apache-conf.pl,v 1.3 1999/02/05 21:10:46 root Exp root $ 79,80c79,80 < ErrorLog /home/foobar/www_logs/error.log < CustomLog /home/foobar/www_logs/access.log combined --- > ErrorLog /home/$username/www_logs/error.log > CustomLog /home/$username/www_logs/access.log combined 96c96 < $md5new=`md5sum $outfile.conf` ; --- > $md5new=`md5sum $outfile.new` ; anyway, i'm still keen to hear comments about this. it's safe to run...it doesn't touch your httpd.conf file at all. it just reads in a config file and generates some httpd.conf fragments. you need to create two directories /etc/virtuals and /etc/virtuals/apache, and you need to create an /etc/virtuals/virtual-hosts.conf file. craig -- craig sanders