have not tested on windows. but in ubuntu when u disconnect from the network, start ur Apache, and enter localhost in any browser, it does not shows ur localhost page, it is suppose to show.
+1
A:
Try using 127.0.0.1
instead of localhost
. There may be something about your name resolver that works differently when not connected to a network.
Greg Hewgill
2009-06-27 02:34:13
one solution, is to use the browser in offline mode. but that is not a proper solution i think.do i change something in resolov.conf or hosts files.
vks
2009-06-27 02:43:54
A:
Check your /etc/hosts
file to see if 127.0.0.1
has localhost
as one of its values.
Alan Haggai Alavi
2009-06-27 02:51:02
127.0.0.1 localhost 127.0.1.1 vksTP # this is how the /etc/hosts looks for IPv4
vks
2009-06-27 03:12:01
A:
are you using Mozilla Firefox ? Firefox goes to offline when he is not connected (or disconnected) to network. so check your browser if you are using FF and turn off offline .. then you can go to localhost.
nightingale2k1
2009-06-27 08:32:18