Thomas is right, the resources he provides are excellent. You have to make
sure that DNS for domain1 and domain2 are pointing to your listener IP.
Sometimes I have seen ISPs or people forget to add in a record to have WWW
point to their IP as well.
If DNS is all correct and done and listening to
> Listen 80
> NameVirtualHost 1.2.3.4:80
>
>
> DocumentRoot /home/os/html/domain1
> ServerName www.domain1.com
>
>
>
> DocumentRoot /home/os/html/domain2
> ServerName www.domain2.co.uk
>
>
Hi,
Which version of apache do you have installed?
What value does the ServerName directive for the
Could somebody please take a look at this config - I have stripped it
down to something close to minimal.
No hits on domain1.com seem to reach the intended (first) VirtualHost
directive.
Hits on domain2.com reach the second VirtualHost only when not preceded
by www.
LogLevel debug doesn't help