My http://localhost is not working. But the address http://127.0.0.1 is working fine. I have multiple webservers installed on my computer and it is the same problem with them all.

I think, but I don't know, that the problem started when I installed IIS, but I have inactivated IIS now.

I am using Windows Vista. How can I make http;://localhost working again?

link|improve this question

Can you be more specific about "not working"? Do you get an error message? – coneslayer Jul 22 '10 at 13:23
feedback

1 Answer

up vote 12 down vote accepted

Check your hosts file - this is where host names are resolved in first place. Normally, you should find this line there:

127.0.0.1 localhost

If not, add this line, save it and then test again, whether it works.

The hosts file can be found at: %WINDIR%\system32\drivers\etc

You can edit this file with any text editor (e.g. notepad).

link|improve this answer
You beat me to it! ;) +1 – BloodPhilia Jul 22 '10 at 13:39
Its name is hosts, not host. – reinierpost Jul 22 '10 at 14:13
@reinierpost Edited ;) Thanks for noticing. – BloodPhilia Jul 22 '10 at 14:37
Thanks for correcting :) – reinierpost Aug 16 '10 at 12:09
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.