I am running the latest version of XAMPP on Windows 7. I am attempting to enable virtual hosts. The issue is that the first virtual host defined in my httpd-vhosts.conf file is always the one that the browser gets redirected to. Here is my httpd-vhosts.conf file:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerName bru.jay
DocumentRoot "C:\xampp\htdocs\bru\html"
</VirtualHost>
<VirtualHost *:80>
ServerName test.jay
DocumentRoot "C:\xampp\htdocs\test\html"
</VirtualHost>
If I go to either bru.jay or test.jay I am redirected to C:\xampp\htdocs\bru\html, however if I change the order in which they are defined I will go to C:\xampp\htdocs\test\html . I have the line
- Code: Select all
Include "conf/extra/httpd-vhosts.conf"
un-commented in my httpd.conf file. I'm not sure what I am missing here. Could anyone suggest what is wrong? Any help is appreciated. Thanks much.