Want to test a website being developed locally from remote device? Head over to this site (http://xip.io/) and in your vhost setup the following replacing the IP address with your local IP:
1 2 3 4 5 6 7 8 9 10 11 12 | #mysite.local <VirtualHost *:80> DocumentRoot "/Users/me/Sites/Development/mysite/www" ServerName mysite.local ServerAlias mysite.local.192.168.1.81.xip.io <Directory "/Users/me/Sites/Development/mysite/www"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.