Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
Can you be more specific about "not working"? Do you get an error message? –  coneslayer Jul 22 '10 at 13:23
add comment

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).

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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