Saturday, June 4, 2011

Installing Apache2 on Ubuntu 11.04 in VirtualBox

Install with:

sudo apt-get install apache2

Setup port forwarding so that Apache can be accessed from the host:

"C:\Program Files\Oracle\VirtualBox\VBoxManage" modifyvm "Ubuntu-11.04" --natpf1 "apache,tcp,,8080,,80"

Then from the host access:

http://localhost:8080/

No comments:

Post a Comment