Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Given the latest version of IIS at the time of writing is IIS8, how would one go about adding a new site through the IIS manager, set up HTTP bindings, and test the setup in a browser?

This configuration assumes that the named domain in the HTTP binding "does not exist" on the internet, but is simply a local moniker for testing (such as test.com and www.test.com.)

For a little background, I have followed the tutorial on pluralsight as well as I can for the IIS 7.5 version of this very task, but upon attempting to access test.com in my browser, I get a time out. Localhost however does work.

share|improve this question

closed as not a real question by mgorven, Greg Askew, mdpc, Ward, Khaled Feb 12 '13 at 8:22

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
If your objective is to test the site then what does it matter if you test it via localhost or test.com? You're testing the site, not DNS. –  joeqwerty Feb 12 '13 at 2:14
    
@joeqwerty - there are things that you need accurate DNS resolution to test on a website; for example redirecting to a canonical domain, or serving different content for different domains, or even I18N - en.example.com, br.example.com, es.example.com, etc –  Mark Henderson Feb 12 '13 at 8:28
    
Mark - True. I considered that but as the OP didn't provide a lot of detail about the nature of the testing I didn't elaborate. As it is, if I want to test a web site I can certainly do that with localhost. If I need the kind of testing that you elaborated on then DNS resolution is certainly needed. –  joeqwerty Feb 12 '13 at 13:54
    
I think the key here was "Test the HTTP Bindings" that for some reason I only placed in the title, and not in the actual body of the question. –  Firoso Feb 12 '13 at 17:58
add comment

1 Answer

We have no idea what the "tutorial on pluralsight" is, but the quickest and dirtiest way to achieve this is to edit your hosts file.

On any modern version of Windows, this is at %WINDIR%\System32\drivers\etc\hosts

Add a new line to the end of the file that reads:

127.0.0.1 example.com

(where example.com is whatever you're trying to test).

You will probably need to run Notepad as Administrator to edit the file.

share|improve this answer
    
I actually did this very thing, 127.0.0.1 test.com exists as a single line, space delimited, in my hosts file. –  Firoso Feb 12 '13 at 17:53
add comment

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