I'm getting an problem with setting up virtual hosts on my small local box. It appears the first virtual host defined is definitely the main one that's getting used. I'm running Apache ver 2.2.21 (latest XAMPP installation) on Home windows 7.

I've looked with this and located a publish here

that describes an identical problem however have NameVirtualHost *:80 uncommented during my httpd-vhosts.conf file.

This really is my httpd-vhosts.conf file :

NameVirtualHost *:80

<VirtualHost *:80>
ServerName bru.jay
DocumentRoot "C:\xampp\htdocs\bru\html"

<VirtualHost *:80>
ServerName test.jay
DocumentRoot "C:\xampp\htdocs\test\html"

During my httpd.conf file I've:

Include "conf/extra/httpd-vhosts.conf"

not-said to ensure that my virtual hosts config file is parsed.

likely to either test.jay or bru.jay takes me towards the document root for bru.jay. Basically switch an order by which they seem test.jay is going to be used. I know when no matching host is located the very first virtual host can be used, however aren't seeing why there's not really a match found being that they are defined.

I have set something similar to this up effectively a couple of occasions previously. I am unsure things i am missing here. Any advice or suggestions are appreciated. Thanks!