apache2 web server

Marius Gedminas marius at pov.lt
Wed Apr 23 12:50:35 UTC 2014


On Wed, Apr 23, 2014 at 12:38:23PM +0100, Ian A Taylor wrote:
> 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

We need some more information to answer that question:

1. What are the contents of /etc/apache2/sites-available/qwert?

2. Do you have anything else in /etc/apache2/sites-enabled?

3. Is there a 'NameVirtualHost *:80' directive (in
   /etc/apache2/ports.conf, IIRC)?

Marius Gedminas
-- 
Gates' Law: Every 18 months, the speed of software halves.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20140423/d5b9426b/attachment.sig>


More information about the ubuntu-users mailing list