To configure Web sites by using the Host Header Names feature, follow these steps:
Click Start, point to Administrative Tools, and then click Internet Information Services.- Expand * server name (where server name is the name of the server), and then expand Web Sites.
Right-click the Web site that you want, and then click Properties.The Web site name Properties dialog box appears (where Web site name is the name of the Web site that you selected).
Click the Web Site tab, and then in the IP Address list, select the IP address that you want assigned to this Web site.
Click Advanced.
Under Multiple identities for this Web Site, click the IP address, and then click Edit.The Advanced Web Site Identification dialog box appears.
In the Host Header Name box, type the host header that you want. For example, type www.example1.com. Add the port number, select the IP address in the list, and then click OK.NOTE: If you want to configure this Web site with additional identities, click Add. Use the same IP address and TCP port, but enter a unique Host Header Name, and then click OK. For example, if you want to access the same Web site from both the Internet and a local intranet, you can configure the Web site identity in the manner shown in the following example:
IP Address TCP Port Host Header Name
192.168.0.100 80 www.example1.com
192.168.0.100 80 example1.com
In the Advanced Multiple Web Site Configuration dialog box, click OK.
In the Web site name Properties dialog box, click OK.You return to the IIS window.
Right-click the next Web site that you want, and then click Properties.
In the IP Address list, select the same IP address that you selected in step 4, and then click Advanced.
No comments:
Post a Comment