rjbaker / simple-magento-vagrant

A VERY simple Magento environment provisioner for Vagrant
251 stars 113 forks source link

Custom .DEV Domains? #31

Open toobulo opened 9 years ago

toobulo commented 9 years ago

How would we go about setting up a custom domain for development, (such as .DEV) as opposed to using the IP address and Port number?

rjbaker commented 9 years ago

Hey there, just change the ip address in the bootstrap file for your custom domain, then update your host machine's hosts file to point your custom domain to 127.0.0.1.

E.g. change http://127.0.0.1:8080 to http://mydomain.dev

Finally, in the vagrantfile change: config.vm.network :forwarded_port, guest: 80, host: 80