Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top