I develop all my sites on a OS 10.5.8 server with PHP and MySQL, and I've configured my /etc/hosts
and httpd.conf
files to display my site at example.dev
in any browser on that machine.
I recently installed Android's software development kit which I'd like to use to develop and test stylesheets targeted to mobile Webkit-- but I can't access my locally-hosted projects in the Android browser.
This makes sense, since it's emulating the whole Android OS, but is there a workaround? Or can I only test projects that exist somewhere on the actual computer internet, perhaps in a hidden directory?
Someone suggested that I edit my /etc/resolv.conf
file, but I don't know the correct way to format a locally-hosted domain in the resolv.conf
-- I tried variations of the following, and nothing works:
domain example.dev
nameserver 127.0.0.1
Or...
domain example.dev
nameserver localhost
In my hosts file, it is set up like this:
127.0.0.1 localhost example.dev example2.dev [etc]