How to use a Hosts file to test a site that uses host headers on an Intranet (228760)
The information in this article applies to:
- Microsoft Internet Information Services 6.0
- Microsoft Internet Information Services version 5.1
- Microsoft Internet Information Server 5.0
- Microsoft Internet Information Server 4.0
This article was previously published under Q228760 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: SUMMARY
This article describes how to use the Hosts file to test a site that uses a host header name over an intranet. Caution Modifying the Hosts file on your computer incorrectly can interfere with name resolution. Be sure to make a backup copy of the Hosts file before modifying it. After testing that the new site that uses a host header name is working properly, you may want to return your Hosts file back to its original form.
Also, if your intranet uses Dynamic Host Configuration Protocol
(DHCP) to dynamically assign IP address to computers, keep in mind that the IP addresses can change, and therefore the IP address referred to in your Hosts file may eventually belong to another computer.
For more information about how to use host header names on a computer that is running IIS, click the following article number to view the article in the Microsoft Knowledge Base:
190008
How to use host header names to host multiple sites from one IP address in IIS 5.0
Modification Type: | Major | Last Reviewed: | 6/30/2006 |
---|
Keywords: | kbhowto KB228760 |
---|
|