H
H
habra_desert2014-09-11 13:10:04
PHP
habra_desert, 2014-09-11 13:10:04

How to make a non-default site work in IIS?

I'm trying to deal with IIS in windows server 2008. After reading this article, I decided to repeat it. For the Default Web Site, everything works, I type localhost or ip of this computer in the browser and see the IIS7 welcome page.
Now I want to create another site like corp.test. I click "add" site, enter the name, path and so on. Then I go into the browser, enter corp.test and see "IE cannot display this page." What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Smirnov, 2014-10-27
@habra_desert

DNS.
Your browser does not know that corp.test is http://127.0.0.1.
For him to know this:

  • \Windows\System32\drivers\etc\hosts - in this file add the line "corp.test 127.0.0.1", easy, fast;
  • or configure your DNS server (if we are talking about a Windows domain DNS server, then add the test zone, create an AAA corp record in it, specify where this name should refer to).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question