1 IP How to build multiple Web sites

Source: Internet
Author: User
Tags header iis port number
In IIS, each Web site has a unique, three-part identity to receive and respond to requests:
(1) IP Address
(2) Port number
(3) Host header names.
In IIS, there are usually two ways to set up separate Web sites on an IP address, and this article introduces the host header method in the form of an example, which can be used to establish a professional virtual host.
Environment: Suppose the new domain technology company (hehe ...) Use a Win2000 server to provide a virtual host service, the address is 192.168.1.10. Internet services are already installed on this server, which is IIS5.
Now the company requires the network administrator on the server to use an IP for ABCD four companies to establish a separate site, each site has its own independent domain name. Four sites are: Www.a.com,www.b.com,www.c.com and www.d.com.
By using the main header, the site can maintain multiple sites with only one IP address. Customers can use different domain names to access their own sites, do not feel that these sites on the same host.
The specific actions are as follows:
1. In the Win2000 server for four companies to establish a folder, as the Web site home directory. As follows: Web site home Directory web site
D:\web\a a website
d:\web\b B Website
D:\web\c C website
D:\web\d D website
2. Using the Web Site Administration Wizard, four companies set up separate Web sites, the biggest difference being the use of different host header names:
Here's a table:
A company Site B Company Site C Company Site D Company site
IP Address 192.168.1.10
TCP port 80
Permission to read and run scripts
Host Header names 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 DNS, all four domain names are registered to the same address: 192.168.1.10. This allows the client to pass:
Www.a.com
Visit a site.
Www.b.com
Visit the B site.
Www.c.com
Visit the C site.
Www.d.com
Visit the D site.
3. The host header names for each site can be set in the Web Site Setup Wizard. It is the same as the IP address of the site and the TCP port on the same screen. It is also possible to configure the "Advanced Multiple Web Site Configuration" by selecting the "Advanced" button on the right side of the IP address through the site-> "Properties"-> "Web Site" tab.
This approach establishes a professional virtual host that can be built by almost any company that uses IIS to provide a virtual host.

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.