Using Host Header Names to Host Multiple Web Sites (IIS 6.0)
IIS supports multiple Web sites on a single server. To create and host multiple Web sites, you must configure a unique identity for each site on the server. To assign a unique identity, distinguish each Web site with at least one of three unique identifiers: a host header name, an IP address, or a TCP port number.
One method for providing each site with a unique identifier is to use IIS Manager to assign multiple host header names. Browsers must comply with HTTP 1.1 to support the use of host header names. Microsoft® Internet Explorer 3.0, Netscape Navigator 2.0, and later versions of both browsers support host header names.
Avoid assigning a host header name to the Default Web Site; instead, use an IP address of All Unassigned, a TCP port of 80, and no host header name.
Table A.4 briefly describes and compares the three ways that you can uniquely identify your Web sites.
Choose one method of uniquely identifying Web sites for each server. Using one method for each server improves performance by optimizing cache and routing lookups. Conversely, using any combination of host headers, unique IP addresses, or non-standard port numbers to identify multiple Web sites degrades the performance of all Web sites on the server.
If you use host header names to identify a new Web site, select a unique name as follows:
Use Windows Explorer to create a home directory for your Web site content. Create subdirectories to store HTML pages, image files, and other content as needed. To organize home directories for multiple Web sites on the same server, you can create a top-level directory for storing all home directories, and then create subdirectories for each site.
Important You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".
To assign multiple host header names to a single Web site
For more information about using host header names to host multiple Web sites, see Hosting Multiple Web Sites on a Single Server. Also see Knowledge Base article 324287, Use Host Header Names to Configure Multiple Web Sites in Internet Information Services 6.0.