Page 1 of 1

Access local virtual webhosts on host from guest

Posted: 21. Aug 2011, 11:58
by Reagent
I have Debian Squeeze host running my local Apache2 webserver with a number of virtual webhosts (Apache's "NameVirtualHost *:80" directive), and VirtualBox with WinXP as guest.
On host (Debian) I can access my websites by their domain names by simply putting a line in /etc/hosts, like "127.0.0.1 mywebsite-1.com, mywebsite-2.com, ..." (so all websites sit on the same local ip, but with different names).
How to configure host-guest network to access them in the same way from guest WinXP as well?

Re: Access local virtual webhosts on host from guest

Posted: 21. Aug 2011, 12:36
by Reagent
Sorry, the problem is solved. All that is needed is to add "10.0.2.2 mywebsite1.com", etc. to /etc/hosts on WinXP guest.