Page 1 of 1

virtualbox for hosting website

Posted: 18. Dec 2012, 08:38
by Chris Sang
I'd like to setup a windows server 2008 in virtualbox and wanted to find out if its capable of hosting a website that can be accessed by external users. I would forward the web traffic from my router to the VM. Can this be done or would I need a dedicated web server for hosting this?

Thanks,
Chris

Re: virtualbox for hosting website

Posted: 18. Dec 2012, 11:18
by noteirak
It can be done, no problem.
Recommended version : set the mode for the Network Interface in VB as "Bridged", your VM will now appear like any other machine on your network, getting its IP from the DHCP (if you have one), etc.

If you do not wish to make your VM appear on the network, you have 2 options :
a. NIC mode as "NAT", your VM is invisble to the host network stack and VB acts as router, simply forward the port to your VM in the Virtualbox setting window.
b. Host-Only mode, your VM is visible to the host network stack (via 192.168.56.x by default). You will then need to set up the routing and the port forwarding manually.