I installed Ubuntu Server 10.10 on VmWare. I installed apache and php and then created a virtual directory, following these steps: http://www.phpfreaks.com/tutorial/a-simple-debian-based-dev-environment
So, I now have a V-host foo.local. I wanted to see the results on my Win7 host, so I checked the IP-address with ifconfig and went there. Sadly, I'm only getting the standard "It Works" page. How can I view my vhost?
EDIT: when I say "Virtual host", I mean the PHP website. I do not mean my Guest OS Ubuntu Server. That is the Virtual Machine, on which the Virtual Host is running.
I can reach the Machine, I can't reach the specific host on it.
EDIT2: solved. I initially thought this wouldn't work. Adding the line to the hosts file did it, I was under the impression that all the hosts file does is redirect something to an IP-address. So if I'm going to 192.168.53.84 manually or telling the hosts file that foo.local points to it, I thought there would be no difference, because Win7 doesn't know what's on the Ubuntu Server. Only that it exists... oh well...
Did you enter an entry in your hosts file? It sounds like you went directly to your IP which won't bring up the Vhost, it will use the main site instead.
Enter this into your host file foo.local and the IP of the VM.
Did you restart apache as per instructions? After adding the vhost?
If you did everything else, and are seeing standard index.html vs index.php it could be that apache is not restarted.
If Apache is restarted, did you add foo.local as a resolvable host in your windows 7 machine? Its a step in the howto as well, but it assumes you are on linux.
If you didn't, and are just going there by IP - then you are getting the default site, and not your newly created foo.local. You need to add foo.local on Win7 to point to the ip you looked up. http://helpdeskgeek.com/windows-7/windows-7-hosts-file/