Create a Web Site

Applies To: Windows Server 2003, Windows Server 2003 with SP1

During installation of Internet Information Services (IIS), a default home directory and Web site configuration are created on your hard disk. Similarly, creating a Web site by using IIS Manager does not create content, but merely creates a directory structure and configuration files from which to publish the content. To publish your Web content, you can place content in the default home directory, or you can create a different home directory or virtual directory and place content there.

Important   If you install ASP.NET with IIS 6.0, structure the content of your Web site so that requests for Web site content do not need to contain /bin in the request URL. As a security measure, ASP .NET returns a 404 error for all requests containing /bin in the requested URL.

Requirements

  • Iis.msc.

Recommendation

As a security best practice, log on to your computer using an account that is not in the Administrators group, and then use the Run as command to run IIS Manager as an administrator. At the command prompt, type **runas /user:**administrative_accountname mmc %systemroot%\system32\inetsrv\iis.msc.

Procedures

To use the default Web site

  1. In IIS Manager, expand the local computer, and expand the Web Sites folder.

  2. Right-click Default Web Site, and select Properties.

  3. On the Web Site tab, under Web site identification, type the name of your Web site in the Description box.

  4. Click OK. The new name of the site appears in IIS Manager.

To create a new Web site

  1. In IIS Manager, expand the local computer, and right-click the Web Sites folder.

  2. Select New, and then click Web Site. The Web Site Creation Wizard appears.

  3. Click Next.

  4. In the Description box, type a name for your site, and then click Next.

  5. Type or select the IP address (the default is All Unassigned), TCP port, and host header (for example, www.mysite.com) for your site.

  6. Click Next.

  7. In the Path box, type the name of the directory or click Browse to navigate to the directory that contains, or will contain, the site content.

  8. Click Next.

  9. Select the check boxes for the Web site access permissions you want to assign to your users, and then click Next.

  10. Click Finish.

  11. To change these and other settings later, right-click the Web site, and select Properties.