views:

538

answers:

3

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
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
A: 

Check your /etc/hosts file to see if 127.0.0.1 has localhost as one of its values.

Alan Haggai Alavi
127.0.0.1 localhost 127.0.1.1 vksTP # this is how the /etc/hosts looks for IPv4
vks
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