Network Administration: Creating Websites

The Windows Server 2008 tool, Internet Information Services (IIS) has the ability to host multiple websites. This is an extremely useful feature not only for web servers that host public sites but also for web servers that host internal (intranet) sites.

For example, you might create a separate intranet website for Human Resources and assign it the website name hr. Then, assuming the domain name is lowewriter.pri, users can browse to the website by using the address hr.lowewriter.pri.

Here are the steps:

  1. Using Windows Explorer, create a folder in which you will save the files for the new website.

    This example uses a folder named c:HR-Web-Site.

  2. Choose Start→Administrative Tools→Internet Information Services (IIS) Manager.

    The IIS Manager springs to life.

    image0.jpg

  3. Right-click Sites and then choose Add Web Site.

    The Add Web Site dialog box appears.

    image1.jpg

  4. Enter a name for the website in the Site Name text box.

    HR is used for this example.

  5. Click the Browse button, browse to the folder you created in Step 1, and then click OK.

    This example uses C:HR-Web-Site.

  6. In the Host Header text box, enter the exact DNS name you want to use for the site.

    This example, uses hr.lowewriter.pri.

  7. Click OK.

    The newly created website appears beneath the Sites node in the IIS Manager.

    image2.jpg

  8. Close the IIS Manager.

  9. Create a web page to display in the folder you created in Step 1.

    For this example, Notepad was used to create a text file named default.htm, with the following text:

    <HTML>
    <BODY>
    <H1>Welcome to the HR Web Site!</H1>
    </BODY>
    </HTML>
  10. Choose Start→Administrative Tools→DNS.

    This brings up the DNS Manager console.

    image3.jpg

  11. In the navigation pane, navigate to the node for your domain.

    This example shows navigation to lowewriter.pri.

  12. Choose Action→New Alias (CNAME).

    The New Resource Record dialog box appears.

    image4.jpg

  13. Enter the alias name you want to use in the Alias Name text box.

    In this example, hr was entered.

  14. Enter the computer name of your web server in the text box labeled Fully Qualified Domain Name (FQDN) for Target Host.

    lserver01 was used in this example.

  15. Click OK.

    The DNS alias is created.

  16. Close the DNS Manager console.

  17. Open a browser window.

  18. Browse to the alias address you just created.

    For this example, hr.lowewriter.pri was used.

    image5.jpg