I am running Apache 2.2 on XP. I want to set up Apache so that I have different test sites (each listening on a different port), to be accessed by other machines on my internal (home network).
I have managed to setup different virtual hosts (all using port 80), I have then used the host file to provide server names like:
127.0.0.1 localhost 127.0.0.1 test.php.localhost 127.0.0.1 phpmyadmin.localhost
etc
This works fine on my local machine, in that I can acces http://phpmyadmin.localhost/ (for example, on my local machine. However, when I go to another machine I cannot type http://phpmyadmin.localhost/ I can only type http://[server.ip.address] which in this case, gives me the first website listed in my httpd.conf file.
I have two (possibly related) questions
- What do I need to do so that I can access http://phpmyadmin.localhost/ from another machine in the LAN (is it simply a case of modifying the host file on each machine, or is it more complicated?)
- How do I access a SPECIFIC website (on my local server), from one of the machines in my network, instead of being automatically assigned to the first wite listed in httpd.conf?