The only thing that is needed as far as the setup of the guest in VirtualBox is the network. You would need to use Bridged or host-only so the host and guest are in the same subnet. Configuration of the guest web server and Ubuntu is outside the scope of this forum and you would need to ask the Ubuntu forum for help on their software.