Accessing local server from your networked computers
Access from network
For security reasons I change all Allow from all's to
Allow from 127.0.0.1 when installing the xampp server.
I believe this keeps all my files accessible only from a local computer.
xampp\apache\conf\httpd.conf
Add the line
Listen 192.168.0.1:80
where the ip is the ip of the xampp machine
xampp\apache\conf\extra\httpd-vhosts.conf
Add the line
NameVirtualHost 192.168.1.1:80
where the ip is the ip of the xampp machine
Change the line Allow from 127.0.0.1 to
Allow from 127.0.0.1 192.168.0.2
where the ip is the ip of the networked computer
windows\system32\drivers\ets\hosts - on xampp machine
Add the line
192.168.0.1 testsiteaddress.dev
windows\system32\drivers\ets\hosts - on networked computer
Add the line
192.168.0.1 testsiteaddress.dev
To find how to do this I just spent about 2 1/2 hours. I ended up figuring this out from both:
http://stackoverflow.com/questions/2520974/xampp-redirecting-to-xampp-di...
and mostly
http://www.ozestretch.com/forum/viewtopic.php?t=5&f=6
I do hope to update all my steps for a local server soon.
