Click to See Complete Forum and Search --> : apache 2.2.11 on vista Virtual Hosts


tefnut
01-04-2009, 06:19 AM
Hi

Im a bit new to apache server and more used to IIS but trying to convert but finding it really hard

Im trying to get virtual hosts working on windows vista, Im using apache 2.2.11, apache is working becuase I get the 'It Works' Message when I go to localhost

I have this in my httpd-vhosts.conf file:

<VirtualHost *:80>

DocumentRoot C:/work/mysite

ServerName mysite.dev

</VirtualHost>

but when I go to http://mysite.dev i get page not found

I hope someone can help maybe I have forgot something really obvious
Thanx

felgall
01-04-2009, 05:25 PM
Try adding the following line to the hosts file:

127.0.0.1 mysite.dev

Without finding that in the hosts file on your computer the query will get passed to a DNS on the web and the site will not be found because none of them lnow that the domain is on your computer.

tefnut
01-14-2009, 06:40 AM
Hi, thanks
I've done that but it no luck. Could it be permissions on the folder?

Thanks again