Ok, so I have a development server on my local network. My Mac is running Apache, and I've used the NetInfo manager to host development servers for a number of different projects. However, while on my local network via Wi-Fi (care of my Airport Extreme) and able to access my Mac through its local address of http://10.0.1.200/, it will ONLY server up the default (ie the last website I added to the name-based list) website on the server. Because all the websites are NAME-BASED, the browser visiting them NEEDS to be using the right name, for them to come up. To do this, on my PC I'd just edit the host file, setting it to point to my Mac's local address:
My host file has entries like:
These all point to separate development websites hosted on my Mac (development versions of real websites hosted elsewhere. On my Mac however, I need to use the NetInfo manager to set these websites to point to the "localhost" of that machine, when entered into the browser. Like this:
So... Question is... can I get my iPhone to resolve an address like this ( www.mydevwebsite.dev to a local machine )? Obviously I can't get at the HOSTS file on the iPhone, and even if I could, I kind of doubt it would work (similar to how it doesn't work on the Mac). I've been scratching my head about whether I can do something using my Airport Extreme... like, give it some custom DNS to pass to machines on the network (which could even be a universal solution).
Anyone a.) Know what I'm talking about, and b.) Have any ideas about solutions?
I have a feeling that if I were able to set up a VPN, and use the iPhone's VPN support, that could solve it, but #1. I don't have OS X Server, #2. I don't know the first thing about VPNs!
Thanks,
CB
My host file has entries like:
10.0.1.200 www.perfectcasting.dev
10.0.1.200 www.lotterymap.dev
10.0.1.200 www.iphonewar.dev
10.0.1.200 www.freehear.dev
10.0.1.200 www.freefrag.dev
These all point to separate development websites hosted on my Mac (development versions of real websites hosted elsewhere. On my Mac however, I need to use the NetInfo manager to set these websites to point to the "localhost" of that machine, when entered into the browser. Like this:

So... Question is... can I get my iPhone to resolve an address like this ( www.mydevwebsite.dev to a local machine )? Obviously I can't get at the HOSTS file on the iPhone, and even if I could, I kind of doubt it would work (similar to how it doesn't work on the Mac). I've been scratching my head about whether I can do something using my Airport Extreme... like, give it some custom DNS to pass to machines on the network (which could even be a universal solution).
Anyone a.) Know what I'm talking about, and b.) Have any ideas about solutions?
I have a feeling that if I were able to set up a VPN, and use the iPhone's VPN support, that could solve it, but #1. I don't have OS X Server, #2. I don't know the first thing about VPNs!
Thanks,
CB