1
I have a Vista laptop that I have been running Apache / MySql / Php / PhpMyAdmin on for quite some time without fail. I just use it to test bits of code here and there etc. No problems, until recently when I needed to test something and I happened to be in a place that I could not get an internet connection. Why am I unable to access localhost from the same machine without an internet connection? I am type http://localhost..etc into the browser's address bar and I get the message that I am unable to access without an internet connection. I checked my windows/system32/etc/hosts file and the first two lines are
127.0.0.1 localhost
::1 localhost
What am I missing here?
2Is the server up? Have you checked? – Vinko Vrsalovic – 2009-10-08T16:25:04.477
Do you mean
http://localhost/etc
? (/
, not..
) – SLaks – 2009-10-08T16:25:24.197Why do you have localhost in your hosts file twice? There should only be one entry that is
127.0.0.1 localhost
– None – 2009-10-08T16:29:10.5702@James Goodwin - "::1 localhost" is for IPv6 – Mark – 2009-10-08T16:37:54.217
Do you use http://localhost/ when you have internet plugged in, or just when you are not connected? If so, then the problem most likely is a wrongly configured NameVirtualHost directive.
– Raynet – 2009-10-09T00:35:17.433