Microsoft KB Archive/816576

= How to create a new virtual server or Web site in Internet Information Services (IIS) 6.0 =

Article ID: 816576

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows Server 2003, 64-Bit Datacenter Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows Small Business Server 2003 Standard Edition
 * Microsoft Windows Small Business Server 2003 Premium Edition

-



IN THIS TASK

 * SUMMARY
 * Overview
 * To Create a Web Content Folder
 * To Create a Virtual Server
 * REFERENCES



SUMMARY
This article describes step-by-step how to create a virtual server in Internet Information Services (IIS) 6.0.

back to the top

Overview
You can configure a single Windows Server 2003-based computer to host multiple Web sites where each Web site is distinct and separate, with separate Web content and permissions. To create a virtual server, you map a new Web site to the content folder that you want. This Web content can be on the local computer or on a remote share. Virtual servers are defined by a combination of the following three parameters:
 * The Internet Protocol (IP) address that is assigned to the Web site
 * The Transmission Control Protocol (TCP) port number that is assigned to the Web site
 * The host header name that is assigned to the Web site

As long as one parameter is unique to each virtual server, they can run at the same time in IIS.

For example, you can have multiple Web sites that are all mapped to the same IP address and that all use the default TCP port 80 as long as you assign a unique host header name to each virtual server.

back to the top

To Create a Web Content Folder
To create a new folder where you can store the content for the Web site:
 * 1) Start Windows Explorer.
 * 2) In the Folders list, click the folder where you want to create the new folder. For example, click Inetpub.
 * 3) On the File menu, point to New, and then click Folder.
 * 4) Type a name for the folder, and then press ENTER.

Note To maintain a high level of security, do not create the Web content folder in the root folder of the hard disk.
 * 1) Quit Windows Explorer.

back to the top

To Create a Virtual Server
To create a virtual server:  Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager. In the console tree, expand   where ServerName is the name of the server, right-click Web Sites, point to New, and then click Web Site. The Web Site Creation Wizard starts. Click Next. On the Web Site Description page, type a description for the Web site in the Description box, and then click Next. On the IP Address and Port Settings page, do the following:  Click the IP Address that you want to use for the Web site in the Enter the IP address to use for this Web site box.

Note If you click (All Unassigned), the virtual server responds to all IP addresses that are not assigned to other virtual servers. If you want to use a different TCP port than the default TCP port 80, type the port that you want to use in the TCP port this Web site should use (Default 80) box.</li> If you want to specify a host header for the virtual server, type the host header name in the Host Header for this Web site (Default: None) box.</li> Click Next.</li></ol> </li> On the Web Site Home Directory page, specify the path of the Web content folder that you created earlier in the Path box. For example, C:\InetPub\.

If you do not want to allow anonymous access to the Web site, click to clear the Allow anonymous access to this Web site check box, and then click Next.</li> On the Web Site Access Permissions page, specify the permissions that you want for the Web site, and then click Next.</li> Click Finish.

The new Web site appears in the list of Web sites under Web Sites in the console tree. To modify settings for the Web site, right-click the Web site, and then click Properties.</li></ol>

back to the top

<div class="references_section">