5

Virtualhosts not working on guest VM accessed via host

view full story
linux-howto

http://serverfault.com – I have a Windows 7 host machine running VirtualBox (v4.122) and a guest VM of Kubuntu 12.04 running Apache2. I can access the Apache server from the host machine but it will only load the default Apache welcome page and is ignoring all of my virtual hosts. Some more details about the configuration: The Kubuntu VM has several virtual hosts that all work fine when accessed via a web browser inside the VM. I am using port forwarding in VirtualBox to send port 8080 on the host machine to port 80 on the guest. Both /etc/hosts in Kubuntu and C:\Windows\System32\drivers\etc\hosts have the entries (HowTos)