XAMPP ver. 1.6.7
Windowx Vista Home
My configuration:
I have configured windows hosts like this:
- Code: Select all
127.0.0.1 localhost
127.0.0.1 test.local
and xampp (apache) virtual hosts like this:
- Code: Select all
<VirtualHost *:80>
ServerName test.local
DocumentRoot "D:\xampp\htdocs\test"
<Directory "D:\xampp\htdocs\test">
AllowOverride All
</Directory>
</VirtualHost>
The problem is:
When I have internet connection I can access http://localhost/phpmyadmin AND http://test.local
When I'm offline, I can only access http://localhost/phpmyadmin BUT NOT http://test.local
How do I solve this, and why virtual hosts require internet connection to work?