Skip to content

Instantly share code, notes, and snippets.

@JeffreyWay
Created February 27, 2014 05:16
  • Star 6 You must be signed in to star a gist
  • Fork 25 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save JeffreyWay/9244801 to your computer and use it in GitHub Desktop.
Quickie vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "192.168.33.21"
config.vm.provision :shell, :path => "install.sh"
config.vm.synced_folder ".", "/var/www"
end
@zendzo
Copy link

zendzo commented Mar 5, 2014

i use windows and already following step by step, but when i want to create another domain name like project.local i can't access it.
i only can access ip and localhost:8080

@xahy
Copy link

xahy commented Sep 25, 2014

You have to edit the hosts file that points your ip to the domain you want to point to.

@seffw
Copy link

seffw commented Sep 12, 2020

This doesn't work anymore 'failed to connect error'.

Fix seems to be here: hashicorp/vagrant#9897 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment