Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .