apache2 web server

Ian A Taylor iat at st-andrews.ac.uk
Wed Apr 23 11:38:23 UTC 2014


Sir/Madam

I am trying to setup an Apache2 web server on Ubuntu 12.04

I can get a default web page to work ok

But I cannot get  VirtualHosts to work
Well at least that is what I believe to be the case.

When I define my virtual hosts in
/etc/apache2/sites-available

I then run   a2ensite on that site-name

In /etc/apache2/sites-enabled it creates the correct link

However when I then try to visit the site I see error messages

File does not exist: /var/www/qwert

But in /etc/apache2/sites-available/qwert  there is a line

DocumentRoot /home/qwert

So why does it look in /var/www/qwert

The  Default DocumentRoot is /var/www

But I simply do not understand why it wants to look in /var/www/qwert 
and not /home/qwert

Any help whould be sincerely appreciated


Thanking you.

Yours sincerely



Ian Taylor
University of St.Andrews,
School of Physics & Astronomy,
North Haugh,
St.Andrews,
Fife  KY16 9SS,
Scotland.

e-Mail :- iat at st-and.ac.uk
Tel    :- (0)1334-463141
Fax    :- (0)1334-463104

The University of St Andrews
is a charity registered in
Scotland : No SC013532.




More information about the ubuntu-users mailing list