One IP to build multiple Web sites - Host Header Method

  

For various reasons, we sometimes need to create multiple web sites on one IP address. In IIS5, we may achieve this goal with simple settings. .
In IIS, each Web site has a unique, three-part identifier for receiving and responding to requests:
(1) IP address
(2)Port number
(3) Host header name.

In IIS, there are usually two ways to create multiple independent web sites on an IP address. This article introduces the host header method in the form of an example. Using this method, you can establish a professional virtual Host.

Environment: Assume that ** company (hehe...) provides a virtual host service with a win2000 server, the address is 192.168.1.10. The Internet service is already installed on this server, ie IIS5.
Now the company requires network administrators to use an IP to create independent websites for ABCD four companies on the server. Each website has its own independent domain name. The four website names are: www.a.comwww.b.comwww.c .comwww.d.com.

By using a host header, a site can maintain multiple sites with just one IP address. Customers can use different domain names to access their respective sites. They simply don't feel that these sites are on the same host.

The specific operations are as follows:
1. Create folders for four companies in win2000 server, as WEB site home directory. As follows: WEB site home directory WEB site
d:\\web\\a A company website
d:\\web\\b B company website
d:\\web\\c C company website< BR>d:\\web\\d D company website

2. Using the WEB site management wizard, each company establishes an independent WEB site. The biggest difference between the four is the use of different host header names: Br>

Company A Site B Company Site C Company Site D Company Site
IP Address 192.168.1.10
TCP Port 80
Permission Read and Run Script
Host Head Name www.a. Com www.b.com www.c.com www.d.com
The site home directory d:\\web\\ad:\\web\\bd:\\web\\cd:\\web\\d

The four domain names are registered in the DNS, all pointing to the same address: 192.168.1.10. In this way, the client can access the company site through

http://www.a.com.
Http://www.b.comVisit company B site.
http://www.c.com visit C company site.
http://www. D.com visits the D company site.

3. The host header name of each site can be set in the WEB site setup wizard, which is on the same screen as the site's IP address and TCP port. It may also pass Site->"Properties"->"WEB Sites" tab-> Select the "Advanced" button to the right of the IP address and jump out of "Advanced Multi-Web Site Configuration" for configuration.

This method can be established. Building a professional virtual host, almost all companies that use IIS to provide virtual hosting do this.

Copyright © Windows knowledge All Rights Reserved