3 ms·
One problem I've been running into: I have a virtual machine (linux running in vmware fusion on osx). I have dev.site.com in /etc/hosts. The vm is set to use a
by joevandyk 12y ago
One problem I've been running into: I have a virtual machine (linux running in vmware fusion on osx). I have dev.site.com in /etc/hosts. The vm is set to use a private network on the vm (as I don't want the ip address to change when I switch networks). How can I setup my phone to load dev.site.com and have it work while keeping the private network setup?
- stock_toaster 12y agorun an http proxy on your host os and have the phone configured to use that?
- joevandyk 12y agohow does the iphone know to route requests for the private network to the host os?
- jasomill 12y agoHTTP Proxy in iOS Settings offers three options: Off: proxies no HTTP requests. Manual: proxies all HTTP requests through a proxy server at the specified host and port. Auto: uses JavaScript code hosted on a Web server at a specified (unproxied) URL to determine how HTTP requests get proxied. Assuming your proxy server is at host.example.com:8080, specifying a URL pointing to a file containing function FindProxyForURL(url, host) { if (shExpMatch(host, "*.vm.example.com")) { return "PROXY host.example.com:8080"; } else { return "DIRECT"; } } should proxy only HTTP requests whose URLs point to hosts in the .vm.example.com subdomain through your proxy server. Disclaimer: I haven't tested any of this, and everything I know about proxy auto-configuration comes from skimming the Wikipedia page[1] just now. [1] http://en.wikipedia.org/wiki/Proxy_auto-config http://en.wikipedia.org/wiki/Proxy_auto-config