I am running an Apache 2.2.21 on Win7 x64, using sucessfully a row of different virtual hosts

  • local.projectOne
  • local.projectTwo
  • ...

So far this was fine, using the hosts file to map'em all to Now I want to do Android/iPhone optimizations, in other words, also other devices in the local network should see the different local devices, so etc/hosts are not an option. As of now, they can all access http://mymachinename, but of course only get the default localhost website.

I found plenty of tutorials around the hosts file (which no longer is of use for me), but very little on making known a windows machine in the local network under two names.

Do I have to / can I a) somehow tell windows to communicate two network names or b) do I habe to tinker with my router's built-in (I presume) DNS server. Which is a Fritzbox 7270. Without hard hacks, telnet, ... there seem's not to be an easy solution?!?


Yes, you'll need to configure DNS for those names to point to your system (or else configure a hosts file on the devices you're testing with, but I assume that's not an option)

If your router's DNS service isn't capable, then you'll need to set up a more capable DNS server.

| improve this answer | |
  • Thank you both. Fritz(box) also confirmed, that this would be the way to go, but they don't have this feature yet (at least an official and easy way to tune the DNS for the local network). I solved my issues by using different ports for the different websites ( mymachine:8080, mymachine:8181 ). Less pretty, but doing the job... – Frank Nocke Feb 15 '12 at 20:14

If you just doing this for testing, its possible that Posadis might do the job for you although I haven't tried it.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.