How to configure Web publishing rules to host multiple Web sites with host headers in ISA Server (838252)



The information in this article applies to:

  • Microsoft Internet Security and Acceleration Server 2004, Standard Edition

INTRODUCTION

This article describes how to add host headers to a Web site in Microsoft Internet Information Services (IIS). Additionally, this article describes how to configure Web publishing rules in Microsoft Internet Security and Acceleration 2004 (ISA 2004) server to redirect HTTP requests from the Internet to a specific internal Web server by using the original host header.

You can use host header names with a single static IP address to host multiple sites. IIS uses the host name that is passed in the HTTP header to determine which site clients request.

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 or routed to the correct site.

MORE INFORMATION

Configuring host headers in IIS

You can use host header names to host multiple domain names from one IP address. To do this, follow these steps.

WARNING Do not use a host header name with the default Web site. This can cause irregular behavior with add-on packages for IIS.
  1. Click Start, point to Programs, point to Administrative Tools, and then click Internet Services Manager.
  2. In the Internet Services Manager management console, expand the IIS Server that contains the Web site you want to modify, right-click the Web site that you want to modify, and then click Properties.
  3. In the Web_site Properties box, click the Web Site tab.
  4. On the Web Site tab, select an IP address from the list in the IP Address field, and then set the TCP Port that you want to use. Typically, the TCP port that you want is port 80.
  5. Click Advanced, and in the Advanced Multiple Web Site Configuration properties dialog box, click Add.
  6. In the Advanced Web Site Identification dialog box, click an IP address in the list in the IP Address area, type a TCP port number in the TCP Port box (this is typically port 80), type a host name in the Host Header Name box, and then click OK.

    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. You can specify a different host header name for each identity, but make sure to use the same IP address and the same TCP port for each entry.
  7. Click OK in the open dialog boxes to apply the changes.
  8. Make sure that you register the host header name with the appropriate name-resolution system, such as DNS or WINS.
  9. After you register the host header name with the name-resolution system, test it in a Web browser by using the host header name to connect to the Web site.

Publish the Web server in ISA 2004 Server

  1. Click Start, point to Programs, point to Microsoft ISA Server, and then click ISA Management.
  2. In the ISA 2004 management console, expand ISAServerName, where ISAServerName is the name of your ISA 2004 server.
  3. Click Firewall Policy. In the right-pane of the ISA 2004 management console, click the Tasks tab, and then click Publish a Web Server under Firewall Policy Tasks.
  4. On the Welcome to the New Web Publishing Rule Wizard page, type a descriptive name in the Web publishing rule name box, and then click Next.
  5. On the Select Rule Action page, click the Allow option, and then click Next.
  6. On the Define Web site to Publish page, click Browse and then click the Web server that you want. 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.
  7. On the Public Name Details page, click This domain name (type below): in the Accept request for list. In the public name, type the domain name for example, HostHeader.Domain.com, where HostHeader is the host header name that you assigned to the Web site, and Domain.com is your domain name. Click Next.
  8. On the Select Web Listener page, select a Web listener from the list that allows external networks access, and then click Next. If you have not already configured a Web listener, follow these steps:
    1. On the Select Web Listener page, click New.
    2. On the Welcome to New Web Listener Wizard page, type a descriptive name in the Web listener name box, and then click Next.
    3. On the IP Addresses page, click to select the External check box, and then click Next.
    4. On the Port Specification page, accept the defaults, click Next, and then click Finish
  9. On the Select Web listener name page, click Next.
  10. On the User Sets page, select All Users, click Next, and then click Finish.
  11. In the Firewall Policy pane of the ISA 2004 management console, click Apply to apply the changes.

REFERENCES

For additional information about configuring host headers names in IIS 6.0, click the following article number to view the article in the Microsoft Knowledge Base:

324287 How to use host header names to configure multiple Web sites in Internet Information Services 6.0



For additional information about how to use a HOSTS file to test sites that use host headers, click the following article number to view the article in the Microsoft Knowledge Base:

228760 How to use a HOSTS file to test a site that uses host headers on an intranet



For additional information about configuring Web publishing rules to host Web sites with host headers in ISA Server 2000, click the following article number to view the article in the Microsoft Knowledge Base:

305052 Configuring Web publishing rules to host multiple Web sites with host headers in ISA Server


Modification Type:MajorLast Reviewed:7/16/2004
Keywords:kbhowto KB838252 kbAudITPRO