Page 1 of 1

Can't view http://localhost

Posted: Sun Jun 22, 2008 6:50 pm
by newboard
when i type http://localhost the apache default page would not appear but when i
try http://127.0.0.1 and it said It Works! : don't know what thats mean ???


i did how ever get this: "Cannot bind to ... 0.0.0.0:80..." something..

and did search the net and they ask me to type this:


C:\>netstat -ano | find "LISTENING" | find ":80"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1028


i'm using Vista Ultimate btw....hope someone can help

Re: Can't view http://localhost

Posted: Sun Jun 22, 2008 8:03 pm
by Doug G
You might want to check your hosts file and make sure the localhost entry is still there.

Re: Can't view http://localhost

Posted: Sun Jun 22, 2008 8:39 pm
by newboard
Doug G wrote:You might want to check your hosts file and make sure the localhost entry is still there.
yes it's there:

127.0.0.1 localhost
::1 localhost


is this one right?

Re: Can't view http://localhost

Posted: Sun Jun 22, 2008 10:14 pm
by Kieran Huggins
127.0.0.1 localhost

is all that really needs to be there

Re: Can't view http://localhost

Posted: Mon Jun 23, 2008 8:49 pm
by Doug G
newboard wrote:
Doug G wrote:You might want to check your hosts file and make sure the localhost entry is still there.
yes it's there:

127.0.0.1 localhost
::1 localhost


is this one right?
Yep. The 2nd line is for IPv6 localhost

Anyway, the hosts file doesn't appear to be a problem. Maybe some setting in the firewall? Maybe your apache configuration is restricting what IP's can visit the webserver?.

I use IIS only on vista, apache on linux, so there is nothing I can test with here, sorry.