View specific virtualhost from within Virtualbox Windows XP?

1

I currently use 192.168.1.10:85 to refer to my localhost ip address, and I setup port-based virtualhosts because this seems like the only feasible/practical way to view this from within Windows XP on my Debian's VirtualBox.

Is anyone else aware of some advanced techniques in which I could view it by the ServerName instead? I would assume I have to hook it up to some sort of DNS server?

I know I can also edit the hosts file in my Windows XP and point certain urls to my IP address, but it will always resolve to the primary default virtualhost.

meder omuraliev

Posted 2010-08-25T15:26:38.660

Reputation: 1 609

Answers

2

I have the same setup as you do (Debian host, VirtualBox, WinXP guest {plus a Win2k3 server guest}), and IP-based routing works fine without using ports.

Although I did create a hosts file entry in each VM that points to 192.168.56.1, there is no "harm" in doing that since the IP will never change.

Tom

Posted 2010-08-25T15:26:38.660

Reputation: 1 321

Could you provide details on your vhosts setup? – boot13 – 2010-08-25T16:35:41.783

Each VM has 2 network adapters enabled. One is "host-only," which allows the VMs to see the host over TCPIP. The other is NAT, which allows the VMs to "share" the host's external network. – Tom – 2010-08-26T12:57:03.517

So you had to manually mess with the network adapters? I'll try this out next week. – meder omuraliev – 2010-08-28T00:50:09.210