Page 1 of 1

Virtual Host Not Loading

PostPosted: 21. May 2013 14:36
by RJD Development
Hello Everyone,

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.

Re: Virtual Host Not Loading

PostPosted: 21. May 2013 14:51
by Altrea
Hi,

Can you ping the new vhost?
Have you restarted Apache?
Are you really using the very old version 1.6.0?

Best wishes,
Altrea

Re: Virtual Host Not Loading

PostPosted: 21. May 2013 14:56
by RJD Development
when I type in command prompt ping http://mwdev it tells me it couldn't find it.

I'm not sure if im using 1.6.0, I downloaded xampp off the main page today (So I think I have one of the newest versions).

I also restarted apache & my computer, sadly that didn't work. :(

Re: Virtual Host Not Loading

PostPosted: 21. May 2013 15:02
by Altrea
Please post the entire result of your ping command.
It should at least contain an information about the name resolving.

Please check the exact XAMPP version in your \xampp\readme_en.txt and update your board profile.
That is one of the most important information for us to provide you the help you request.

Re: Virtual Host Not Loading

PostPosted: 21. May 2013 15:15
by RJD Development
Image

In the command prompt its dutch, but translated to English it tells me:

Could not find host http://mwdev. Ping request Check the name and try again.

I have version 1.8.1, but it wasn't in the list so I selected 1.8.0

Hope this helps :)

Re: Virtual Host Not Loading

PostPosted: 21. May 2013 15:56
by Altrea
ping mwdev

Not the whole url