Re: [ILUG] Apache not running using name-based vhosts

From: Ciaran (cj at domain nologic.org)
Date: Wed 26 Jun 2002 - 19:09:57 IST


On Wednesday 26 June 2002 17:12, cnb at domain eircom.net wrote:
> NameVirtualHost *
> #
>
> <VirtualHost *>
> ServerAdmin root at domain irelands-web.ie
> DocumentRoot /var/www/html
> ServerName irelands-web.ie
> ServerAlias irelands-web.ie *.irelands-web.ie
> ErrorLog /var/log/http/error_log
> <Location />
> AllowOverride none
> Options Indexes
> Order allow,deny
> Allow from all
> </Location>
> </VirtualHost>
>
> <VirtualHost *>
> ServerAdmin root at domain irelands-web.ie
> ServerName harmonairconditioning.ie
> ServerAlias harmonairconditioning.ie *.harmonairconditioning.ie
> DocumentRoot /home/harmonaircon/www
> ErrorLog /var/log/httpd/access.log
> TransferLog /var/log/transferlog
> <Location />
> AllowOverride none
> Options Indexes
> Order allow,deny
> Allow from all
> </Location>
> </VirtualHost>

Do all the required directories exist? Also be sure that the apache user can
cd into the log file directories - if created as root this may not be the
case.I've had this problem before and so to be on the safe side I touch all
new log files and chown them to apache. Of course this will show up in the
server log. Unless it can't write to that, either...

My 2 cent,
/Ciaran.



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:34 GMT