Hello folks,
I had the need to connect to a SSL-only vagrant-based server from other machines on the network (eg: iPhone). Here's some feedback in case it's helpful to others (given that most new apps are fully ssl these days)!
Maybe that's worth adding to the Vagrant docs, not sure? Let me know and I'll provide a patch.
In this mode you can setup some port forwarding for ssl:
config.vm.forward_port "https", 443, 8081
then you can access the app using the non standard port (here on a mac):
One extra trick can remove the need to change the port (useful if you app send email or notifications with links to the vagrant app), here on mac os x:
sudo ipfw add 8081 forward 127.0.0.1,8081 ip from any to any 443 in
# later to remove
sudo sudo ipfw delete 8081
From then you should be able to access the app on the standard port:
host only mode
In this mode you'll be able to access the app from the host (but not from other machines on the network afaik). I tend to stick the IP in /etc/hosts then:
Voilà - hope this helps,
-- Thibaut