1,
Each website is different
IP2, each website uses different ports (cookies will have problems
) 3, each website with different host headers
Today, I just encountered a similar problem: the company applied for two domain names, and wanted to point the two domain names to two different sites under the same IP.
Because the links provided are in English, here I will describe the steps of the method 3 in Chinese:
1, set DNS, point the domain name to the public IP
I installed the DNS server in Windows2003 to test:
Establish two forward domains -> Build their respective WWW servers in the domain and put the IP to the company's IP-> In order to use these two on the local machine
Domain name, point DNS in the network connection of the local machine to the previous 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.