[ILUG] Apache not running using name-based vhosts

Ciaran cj at nologic.org
Wed Jun 26 19:09:57 IST 2002


On Wednesday 26 June 2002 17:12, cnb at eircom.net wrote:
> NameVirtualHost *
> #
>
> <VirtualHost *>
>      ServerAdmin root at 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 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.




More information about the ILUG mailing list