Three methods and related articles that have been created in IIS in the blog in the Site 1, each website uses different IP2, each website uses different ports (Cookies will have problems) 3, each Site is just in different host headers today, I just encountered similar problems: the company applied for two domain names, wants to point the two domain names to two different sites under the same IP. Because the links provided by the Site English So here I describe the steps of the method 3 in Chinese: 1. Set the DNS to point the domain name to the public IP. I installed the DNS server in Windows 2003. Test: establish two positive domains -> Established in the domain The WWW server and the IP point to the company's IP-> In order to use these two domain names on the local machine, the DNS in the network connection of the local machine points to the previously Window2003 DNS server.
2, create two Web sites on the machine with public IP machine
3, set the host header of these two web sites
IIS Administration Tools -> Select a Web Site -> Mouse Right-> Properties -> Website tab -> Click the Advanced button -> Select a logo Press Edit button -> Enter the corresponding host header (such as http: // www. Google.com's host header is www.google.com, you can also add an identifier to add Google.com, so that you can access the following two URLs WWW .google.com or Google.com can be accessed This site is set. You can try the effect. Here you should pay attention to a few points: 1. In the Internet, the domain name resolution will have a certain delay, that is, although you have modified the domain name setting, but still have certain Buffer time TTL 2, if it is not necessary in IIS, remove the default site, and do not let IP do not divide 3, set it later to set the access rights to set the virtual directory and the default document, forget to put Index. HTM is added to the default document and has done it again.