O'Reilly logo

Windows Server Cookbook by Robbie Allen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12.3. Creating Web Sites

Problem

You want to create a web site.

Solution

Using a graphical user interface

To create a new web site from scratch using a wizard, do the following:

  1. Open Internet Information Services (IIS) Manager.

  2. In the left pane, expand the server node.

  3. Right-click on the Web Sites node, select New Web Site to start the Web Site Creation Wizard, and click Next.

  4. Type a descriptive name for your site and click Next.

  5. Assign an IP address to your site and click Next.

  6. Specify the path to the home directory for your site, decide whether to allow anonymous access to your site, and click Next.

  7. Specify web permissions to control access to your site and click Next, then Finish.

To create a new web site using a previously saved configuration file, do the following:

  1. Open Internet Information Services (IIS) Manager.

  2. In the left pane, expand the server node.

  3. Right-click on the Web Sites node and select New Web Site (from file).

  4. Specify the path to the XML file containing your saved IIS configuration, click Read File, select the web site you want to import, and click OK.

  5. If the saved configuration was password protected when it was created, you'll be prompted here for a password; enter it and click OK.

  6. Right-click on the new web site and select Start.

Using a command-line interface

The following command creates a new web site named Human Resources on server with IP 216.44.65.8 and root directory D:\HR:

> iisweb /create D:\HR "Human Resources" /i 216.44.65.8

The following command creates a new ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required