Skip to content

Instantly share code, notes, and snippets.

@mitchellh
Created January 3, 2012 20:37
Show Gist options
  • Save mitchellh/1556811 to your computer and use it in GitHub Desktop.
Save mitchellh/1556811 to your computer and use it in GitHub Desktop.
Vagrant 0.9 Forwarded Ports
# Forwarded port configurations were changed so that they no longer
# require a unique name:
# Before
config.vm.forward_port "http", 80, 8080
# After
config.vm.forward_port 80, 8080
# After (if you still want to name it you can, optionally)
config.vm.forward_port 80, 8080, :name => "http"
# Note you can still override the HTTP setting by using the same name.
# After below, the above "8080" would be changed to 9000.
config.vm.forward_port 80, 9000, :name => "http"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment