I have my developer machine on which I work on web applications running under apache on Debian testing.
Now I like to be able to have myApp as domain name and not to have to use localhost or 127.0.0.1 in my browser address bar. Some CMS software doesn't support changing domains very well anyways... :-(
Now to do this I have a /etc/hosts file looking like this:
127.0.0.1 localhost
127.0.0.1 myApp
127.0.0.1 phpmyadmin
....
In my apache settings I properly configure my virtualhost servernames.
This always worked fine, but today I had to share the internet with someone and when I unplug the cabel, I can't access myApp or other aliases anymore except localhost which now delivers me the document root of 'myApp' which it is not even configured to do in apache config...
I never really knew anything of DNS under Linux, but I think I have used this before without internet and it worked.
I haven't tried rebooting without the ethernet cable plugged in, maybe that would work but I am a bit puzzled and would like to understand and fix this problem
Since recently I do have another server (jetty) listening to localhost but on another port, but that might have nothing to do with it...