Virtual Hosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I used to be able to do this in 1.3 but now using 2.2 I can't get it to
work. Running on a Debian server in /etc/apache2/apache2.conf I have
(where nnn.nnn.nnn.nnn = my IP address)

NameVirtualHost nnn.nnn.nnn.nnn
Listen nnn.nnn.nnn.nnn:80

Then for joem.me.uk I have in sites-available

<VirtualHost nnn.nnn.nnn.nnn>
   ServerName joeshome.me.uk
   DocumentRoot /var/www/joem
</VirtualHost>

And for chrishull.me.uk in sites-available
<VirtualHost nnn.nnn.nnn.nnn>
   ServerName chrishull.me.uk
   DocumentRoot /var/www/chris
</VirtualHost>

But whichever I connect to it is always /var/www/chris/index.html that
is served. Both are linked in sites-enabled and DNS A records point to
the correct IP address

Furthermore, if I try to access say http://rubbish.joeshome.me.uk I get
the default site even though this is not enabled.

What am I missing and why has this become so much more complicated?

-- 
Joe

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux