Can't view http://localhost

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
newboard
Forum Newbie
Posts: 8
Joined: Fri May 23, 2008 4:35 am

Can't view http://localhost

Post 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
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: Can't view http://localhost

Post by Doug G »

You might want to check your hosts file and make sure the localhost entry is still there.
newboard
Forum Newbie
Posts: 8
Joined: Fri May 23, 2008 4:35 am

Re: Can't view http://localhost

Post 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?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: Can't view http://localhost

Post by Kieran Huggins »

127.0.0.1 localhost

is all that really needs to be there
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: Can't view http://localhost

Post 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.
Post Reply