One IP address is bound to multiple domain names

Source: Internet
Author: User
Tags website domain names

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
Each site has a unique identifier consisting of three parts for receiving and responding 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 virtual host.

Environment: Assume that ** the company (Haha...) uses a Win2000 Server to provide the virtual host service. The address is 192.168.1.10. 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 | www.d.com.

By using the Host header, the site only needs one IP Address
Address to maintain multiple sites. Customers can use different domain names to access their respective sites, and they cannot 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:
Web site home directory web site

D: \ WEB \ A company website
D: \ WEB \ B company website
D: \ WEB \ c
Company C 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:

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.a.com www. B .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:
Http://www.a.com visit company a site.

Http://www. B .com visit Company B site.
Http://www.c.com visit Company C site.

Http://www.d.com visit Company D site.

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.

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.