This article describes step-by-step how to create a virtual
server in Internet Information Services (IIS) 6.0.
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
- The Transmission Control Protocol (TCP) port number that is
assigned to the Web site
- The host header name that is assigned to the Web
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
To Create a Web Content Folder
To create a new folder where you can store the content for the Web
- Start Windows Explorer.
- In the Folders list, click the folder
where you want to create the new folder. For example, click
- On the File menu, point to
New, and then click Folder.
- 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.
- Quit Windows Explorer.
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
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
- 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
- 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.
- 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.
- Click Next.
- 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\FolderName.
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.
- On the Web Site Access Permissions page,
specify the permissions that you want for the Web site, and then click
- 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.
For more information about how to manage Web sites in IIS
6.0, see the "How to Create Web and FTP Sites" and "Web Site Administration"
topics in the Common Administrative Tasks and Server Administration Guide
sections in the IIS 6.0 Online Documentation. To view the IIS 6.0 Online
Documentation, visit the following Microsoft Web site:
Article ID: 816576 - Last Review: December 3, 2007 - Revision: 5.5
- 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
|kbwebservices kbappservices kbhowto KB816576|