I'm having problems connecting to port 80 on my VM's private IP address. The problem occurs only on CentOS (6.3 and 6.4). When I try with Ubuntu Precise, everything's fine.
This is happening on vagrant 1.2.2, and I had the problem with 1.2.1 as well.
config.vm.network :private_network, ip: "192.168.56.105"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :forwarded_port, guest: 443, host: 4433
The relevant part of my hosts file
After provisioning, I confirm that my webserver is up & running from the inside of the VM:
curl -I www.example.com. But the same command doesn't work from the outside, despite the entry in my hosts file.
Am I missing anything?
Keep in mind: the same provisioning steps with Ubuntu as the guest OS result in the curl command from the host OS to work. It doesn't work only when the guest OS is CentOS.
Has anyone else encountered this?
Thanks in advance,
Mat