creativecoder / wordpress-local-dev

WordPress local development environment that allows multiple sites using one copy of core files (without using multisite)
36 stars 5 forks source link

config additions for xip.io over LAN #3

Open benjaminluoma opened 9 years ago

benjaminluoma commented 9 years ago

Any thoughts on how to accomplish this? I'm running MAMP Pro and this all works very good on my machine but... it'd be nice to share sites with my colleagues via our local network. Currently this falls to "Sorry, no configuration defined" when hitting MYSITE.local.10.0.1.41.xip.io

creativecoder commented 9 years ago

This setup requires that the url and the folder name always be the same, in order for the server to know which folder to find the site in.

The only way I can think of to get this to work on a remote machine is to add to the hosts file on that machine, so that mysite.dev (or whatever local url you use for the site) points to the ip of your machine on the local network. That will allow you to use the same url on both local and remote computers, keeping the ip out of the url.