Roles and settings of IIS host headers

Source: Internet
Author: User
Tags website domain names
Roles and settings of IIS host headers
For various reasons, we sometimes need to create multiple web sites on one IP address. In iis5, we may achieve this through simple settings.

In IIS, each web site has a unique identifier consisting of three parts to receive and respond to requests:
(1) IP Address
(2) Port Number
(3) Host header name.

In IIS, multiple independent web sites are created on an IP address. there are usually two methods. This article introduces the Host Header method in the form of an example, you can use this method to create a professional VM.

Environment: assume that the New Domain Technology Company (Haha...) uses a Win2000 Server to provide the virtual host service. The address is 192.168.1.10. The Internet Service (iis5) has been installed on this server.

Now, the company requires the network administrator to use an IP address on the server to build an independent website for the four companies of ABCD. 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 header, the site only needs one IP address to maintain multiple sites. Customers can use different domain names to access their respective sites, and they do not feel that these sites are on the same host.

The procedure is as follows:
1. create folders for four companies on the Win2000 Server as the Home Directory of the web site.
D: \ WEB \ A company website
D: \ WEB \ B company website
D: \ WEB \ c company website
D: \ WEB \ D Company website

2. Use the web site management Wizard to create independent web sites for each of the four companies. The biggest difference between the four companies is that they use different host headers:
The following is a table:

Company A site Company B site Company C site Company D site
IP address 192.168.1.10
TCP port 80
Read and run scripts with Permissions
Host Header www.goudiannao.com www.baidu.com www.c.com www.d.com
Site Home Directory D: \ WEB \ a d: \ WEB \ B D: \ WEB \ c d: \ WEB \ D

In the DNS, all the four domain names are registered to the same address: 192.168.1.10. In this way, the client can use:
Www.goudiannao.com.
Www. B .com
Visit Company B's site.
Www.c.com
Visit the website of Company C.
Www.d.com
Visit Company D.

3. the Host header name of each site can be set in the web site creation wizard. It is on the same screen as the site IP address and TCP port. you may also click the site-> "properties"-> "web site" tag-> select "advanced" on the right of the IP address to jump out of the "advanced multi-web site configuration" for configuration.
In this way, professional virtual hosts can be established. Almost all companies that use IIS to provide virtual hosts do this.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.