I just started using XAMPP to work locally on the various sites that I am building/maintaining. Previously, I used Apache without XAMPP and whenever I wanted to set up a new virtual host I just modified the httpd file.
To set up virtual hosts with XAMPP, I have added the following to the httpd-vhosts.conf
- Code: Select all
<VirtualHost us.local:80>
ServerAdmin webmaster@us.localhost
DocumentRoot F:\Our-Website\html
ServerName us.local
ErrorLog logs/us.local-error.log
CustomLog "logs/us.local-access.log" common
<Directory "F:\Our-Website\html">
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
<VirtualHost loopfuse.local:80>
ServerAdmin webmaster@loopfuse.localhost
DocumentRoot M:\Backup-lenovo-090513\LoopFuse\web\repository\www\v4
ServerName loopfuse.local
ErrorLog logs/loopfuse.local-error.log
CustomLog "logs/loopfuse.local-access.log" common
<Directory "M:\Backup-lenovo-090513\LoopFuse\web\repository\www\v4">
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
I also added the following to my hosts file:
- Code: Select all
127.0.0.1 us.local
127.0.0.1 loopfuse.local
The problem I am having is that I get the same site for both addresses.
When I enter into the browser: us.local
I get the correct site.
When I enter into the browser: loopfuse.local
I get the us.local site.
I have tried a variety of different things, such as:
--Using a different host name (ie: us.site)
--<VirtualHost 127.0.0.1> This is what I use on my other computer - just running Apache without XAMPP
Any advice or tips would be greatly appreciated.
Thanks
Shannon Dunn