This article was previously published under Q305052
You can use host header names with a single static IP address to host multiple sites. Microsoft Internet Information Services (IIS) uses the host name that is passed in the HTTP header to determine which site clients request.
This article describes how to add host headers to a Web site in IIS and configure Web publishing rules in Internet Security and Acceleration (ISA) server to redirect HTTP requests with the original host header from the Internet to the internal Web server.
Note You cannot use host headers when you are using Secure Sockets Layer (SSL) because HTTP requests that use SSL are encrypted. Host headers are part of the encrypted request and cannot be interpreted and routed to the correct site.
Configuring Host Headers in IIS
You can use host header names to host multiple domain names from one IPaddress. To do this, follow these steps:
Start Internet Service Manager (ISM), which loads the IIS snap-in in Microsoft Management Console (MMC).
Right-click the Web site that should use a host header name, and thenclick Properties.
On the Web Site tab, click the IP address that the site should use, and then set the TCP port that should be used (typically port 80).
In the Multiple identities for this Web Site box, click the identity that you want to use.
Click Edit,, and then add the host header name that you want to use.
NOTE: If you want this site to respond to more than one host header name, use the Add button to add additional identities to the list. Specify a different host header name for each identity, but be sure touse the same IP address and port.
Apply the changes, and then start the Web site (if it is not alreadyrunning).
Register the host header name with the appropriate name-resolution system.
If the computer is on an intranet (a private LAN that uses Internet technology), register the host header name with the intranet's name-resolution system, such as Windows Internet Name Service (WINS) or the Domain Name System (DNS).
If the computer is on the Internet, register the host header name with Domain Name System (DNS), which is administered by InterNic.
After you register the host header name with the name-resolution system, test it in a Web browser by attempting to browse the host header name. The browser should open the expected Web site.
WARNING: Do not use a host header name with the default Web site. This can cause erratic behavior with add-on packages for IIS.
Creating a Web Publishing Rule in ISA Server
Web publishing rules in ISA Server map incoming HTTP requests to the appropriate Web server on or behind the ISA Server-based server. To create a Web publishing rule:
Click Start, point to Programs, point to Microsoft ISA Server, and then click ISA Management.
Expand the Publishing item, right-click Web Publishing Rules, and then click New Rule.
Type a name for the Web publishing rule, and then click Next.
Click All destinations, and then click Next.
Click Any request, and then click Next.
Click Redirect the request to this internal Web server.
Click Browse, and then click the Web server.
Click to select the Send the original host header to the publishing server instead of the actual one (specified above) check box, and then click Next.
Repeat these steps for each additional Web site.
Restart the Microsoft ISA Server Control service.
For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:
190008 HOW TO: Use Host Header Names to Host Multiple Sites from One IP Address in IIS 5.0
228760 How to Use a HOSTS File to Test a Site that Uses Host Headers on an Intranet