Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 127.0.0.1. 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?!?

share|improve this question

closed as off topic by Shane Madden, MDMarra, Michael Hampton, Iain Oct 23 '12 at 8:46

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

up vote 2 down vote accepted

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.

share|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... –  Fronker 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.

share|improve this answer

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