A user has 2 vagrant projects in their home directory. Mac OSX 10.8
The first vagrant instance was created months ago when the user was running an older version (1.1.x), the second instance was created with version 1.2.2. (Hence the vagrant file sytax is slightly different)
The problem is that the first instance (the older one) starts up, and successfully shows the apache welcome page when the user navigates to localhost:8080 using port forwarding. http://docs.vagrantup.com/v2/networking/forwarded_ports.html
The second instance does not show the apache welcome page.
Instance 1 (working)
Vagrant::Config.run do |config|
config.vm.box = "lucid32"
config.vm.provision :shell, :path => "bootstrap.sh"
config.vm.network :bridged
config.vm.forward_port 80, 8080
end
Instance 2 (not working)
Vagrant.configure("2") do |config|
config.vm.box = "lucid32"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :public_network
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "init.pp"
config.vm.hostname = 'salesforce'
end
end
I have verified the following:
Both instances have apache2 installed and running
I am able to run curl localhost:8080 and retrieve the html of the apache test page
I only ever have 1 instance running at a time to avoid conflicts with port 8080
Both instances are bound to the same network card
What could possibly be stopping the port forwarding from working on the newer vagrant instance?