Ken Yes I created the directory before restarting the server. The following are the commands I used after creating the file. ln -s /etc/apache2/sites-available/mcs /etc/apache2/sites-enabled/msc mkdir /var/www/mcs then restarted the server. running cd /var/www/mcs showed there was a directory created. Alan Ken Schneider wrote:
On Thu, 2006-03-30 at 06:19 -0600, Alan Dowley wrote:
Hi all.
I have a virtual server setup and trying to add a second web site (virtual). I created a file with the following:
<VirtualHost www.mobilecomputerschools.ca:80>
ServerAdmin alan@ashfieldsoftware.com ServerName www.mobilecomputerschools.ca
DocumentRoot /var/www/mobilecomputerschools/ ErrorLog /var/log/apache2/mcs-error.log CustomLog /var/log/apache2/mcs-custom.log combined
HostnameLookups Off UseCanonicalName Off ServerSignature On
Options None AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost>
I have created the symlink and directory 'mcs' but when I restart the apache2 server I get the following error message:
Forcing reload of web server: Apache2Warning: DocumentRoot [/var/www/mobilecomputerschools/] does not exist Warning: DocumentRoot [/var/www/mobilecomputerschools/] does not exist
Can anyone tell me what is causing this error.
This is my first attempt at setting up a virtual web site.
Have you actually created the directory before restarting Apache?