For various reasons, we sometimes need multiple Web sites on an IP address. In IIS5, we may reach this target through simple settings.
In IIS, each Web site has unique, identified by three parts, used to receive and respond requests:
(1) IP address
(2) port number
(3) Host name.
In IIS, a plurality of separate Web sites are established on an IP address, and there are usually two methods. This article describes the host header in an example, using this method to establish a professional virtual host.
Environment: Assuming that the Chao Group (呵 ...) provides a virtual host service with a Win2000 server, the address is 192.168.1.10. The Internet service is installed in this server.
Now the company requires network administrators to build an independent website for four companies for ABCD on the server. Each website has its own independent domain name. The four website domain names are: www.a.com, www.b.com, Www.c.com and www.d.com.
By using the host head, the site can maintain multiple sites only one IP address. Customers can use different domains to access their respective sites, at all, do not feel that these sites are on the same host.
The specific operation is as follows:
1. Create a folder for the Win2000 servers to do a folder as a web site. Such as follows:
Web site main catalog Web site D: / Web / AA website D: / web / bb company website D: / web / cc company website D: / web / DD company website
2. Use the Web Site Management Wizard to establish an independent Web site, and the biggest difference is the name of different hosts:
A Company Site B Company Site C Company Site D Company Site IP Address 192.168.1.10TCP Port 80 Permissions Read and Run Script Host Top Www.a.comwww.b.comwww.c.comwww.d.com Site Home Directory D : / Web / ad: / web / bd: / web / cd: / web / d
In the DNS, these four domain names are registered, and they all points to one address: 192.168.1.10. In this way, the client can pass:
Http://www.a.com Access a company site. http://www.b.com Access the B company site. http://www.c.com Access C company site. http://www.d. COM Access D Company Site.
3. Host names of each site can set up in the WEB site to set up, it is on the IP address of the site, the TCP port is on the same screen. It is also possible to pass the site -> Properties -> "Web Site" tab - > Select the "Advanced" button on the right of the IP address to jump out of the "Advanced Multi-Web Site Configuration".
This method establishes a professional virtual host, almost all companies that use IIS to provide virtual hosts.