I am trying to set up a localhost test server with a virtual host, for many development projects.
Although, it's not working, I have filled all the info correct, yet it's not loading.
I have in httpd-vhosts.conf the following:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:\XAMPP\htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:\XAMPP\htdocs\mw1dev"
ServerName mw1dev
<Directory "C:\XAMPP\htdocs\mw1dev">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
In C:\Windows\System32\Drivers\etc\hosts I have
- Code: Select all
172.0.0.1 mw1dev
Now when I try to go to http://mw1dev it tells me the following:
The connection has timed out
The server at mw1dev is taking too long to respond.
Just http://localhost works perfectly fine, it's just the new virtual host I've added doesn't work at all.
Could anyone see a problem here? Not sure what I might be doing wrong.
Greetings.