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?
Access local virtual webhosts on host from guest
-
Reagent
- Posts: 2
- Joined: 21. Aug 2011, 11:41
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: WinXP
Re: Access local virtual webhosts on host from guest
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.