Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I am trying to change the entry in HOST file windows 2008 server so that I can host multiple user friendly website for learning purpose.

Find attached an image of my host file and IIS setting. Both "" and "Default Web site" point to same folder "wwwroot". But if I type " or" will not display anything on browser. Instead if I type http://localhost, the browser displays the default IIS7 html page. How to fix so that I can type and display II7 default page.enter image description here

enter image description here

share|improve this question

migrated from Sep 30 '11 at 10:50

This question came from our site for professional and enthusiast programmers.

What have you added for Host Name when editing the bindings for the second web site ("")? – Richard Sep 29 '11 at 16:09
Its set as – bp581 Sep 29 '11 at 16:36
up vote 0 down vote accepted

You need to set the Host Name for the site to accept requests for also make sure that is bound to port 80. Select Bindings... from the Actions/Edit Site section of IIS Manager for the site. You settings should look like the following:

enter image description here

Update: Just noticed that you have your host files entries commented out... Remove the # from the beginning of the lines for and it should work...

share|improve this answer
It is set like this ...!!!! – bp581 Sep 29 '11 at 16:35
Thanks for confirming the bindings. Please see update... I believe the issue is related to your hosts file. – Paige Cook Sep 29 '11 at 16:43
Thanks a lot..I un-commented it and it worked ...!!! – bp581 Sep 29 '11 at 17:49

Your Answer


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.