Virtual Hosts in Apache (XAMPP on W2k3)
I've seen this topic covered before so please forgive me but I'm having some real problems getting my head round virtual hosts. I understand the theory but can't get it working in practice.
1 W2k3 server with XAMPP installed. 4 websites running from separate folders in htdocs.
These all work well and can be browsed from http://servername/website. For a couple of the sites I would like them to use a virtual host. i.e. just hosted xibo so instead of browsing to http://servername/xibo I'd like to use http://xibo.mydomain.com.
Setup an A name record in DNS to point http://xibo.mydomain.com to the servers IP. That's all cool. Read up from Apache how to modify the httpd-vhosts.conf file. Added the following and removed the ## from NameVirtualHost *:80 :
The first host is to ensure anyother traffic gets directed at the root of the htocs folder. This works fine. If I browse to http://xibo.mydomain.com I get the root of the web server...
What am I doing wrong guys?