IIS host a visit multiple Web sites with different domain names

When the size of the site reaches a certain level, the business will often split, deployed to different sites ,, one server and a domain name (top level domain) can only bind a site (central station), this time through to the top create a domain subdomain way (in theory, a top-level domain can bind 50 sub-domain), the sub-domain binding to related business sites. by modifying the host file in a way that will resolve all of the domain name to the current server IP, re-analyzing the traffic to the site through the IIS host header (subdomain), the procedure as shown below:

 

 

1) site configuration, when the bound set

 

 

 2) hosts file as follows: Note: hosts file in C: \ Windows \ System32 \ drivers \ etc under

Establishing correspondence between the sub-domain and ip (same ip, different sub-domain) in the hosts file

 

192.168.0.121          child1.a.com
192.168.0.121          child2.a.com

  

 

Guess you like

Origin www.cnblogs.com/feihusurfer/p/12131572.html