I tried to install Vagrant and Ubuntu on mac os 10.9.4 to make a local development server following this great instructions by @fideloper: Vagrant and Apache.
the Vagrantfile contains:
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.synced_folder ".", "/var/www/html"
evreything worked fine during the process: Vagrant and virtualbox are installed, Apache is installed on the guest.
from this answer, i tried:
- on the guest,
curl 'http://localhost:80'
returns an html with a file listing - on the host,
curl -v 'http://localhost:8080'
returns the same page.
but the browser says this webpage is not available
at localhost:8080.
why the browser is not displaying localhost:8080?