Viewing localhost on virtualbox

I have a linux mint machine, running an ubuntu server within a virtualbox using Vagrant. I'm trying to view localhost of the ubuntu server from my mint machine.

My Vagrantfile has the following line uncommented:
config.vm.forward_port 80, 8080

My virtualbox is showing eth0 at 10.0.2.15 - however, going to this address (from the mint machine) doesn't access the apache instance of the virtualbox, at port 80 or 8080, after setting a virtualhost listening on 8080 on the virtualbox.

I admit I'm a bit out of my element here, first time working with vagrant.

Any ideas?

Thanks


If you forwarded the port 80 on the 8080 you should be able to access to your web server from the host machine with this url localhost:8080

If you want more detailed informations try curl -v 'http://localhost:8080/'

链接地址: http://www.djcxy.com/p/18216.html

上一篇: 如何调整VirtualBox vmdk文件的大小

下一篇: 在virtualbox上查看localhost