One IP to build multiple Web sites--tcp Port method

Source: Internet
Author: User
Tags iis port number

For a variety of reasons, we sometimes need to set up multiple Web sites on an IP address, and in IIS5 we may be able to achieve this goal by simply setting.

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 establish multiple independent web sites on an IP address, and this article introduces the TCP port method in the form of an example.

Environment: Suppose a company's intranet consists of a Win2000 server and dozens of workstations, the network segment of this intranet is 192.168.1.0/ 24, the address of the server is 192.168.1.10, the name is myserver. Internet services are installed on this server that is IIS5.

The company has a,b,c three departments, respectively, in 8086,8087,8088 three rooms office. Now the company requires the network administrator on the server to use an IP for the company and three departments to establish a website, that is, to establish four sites.

By using an additional port number, the site can maintain multiple sites with only one IP address. When a customer wants to access a site, it needs to append the port number behind the static IP address (except for the default Web site, which uses port 80).

The specific actions are as follows:

1, on the Win2000 server for the company and three departments on the hard disk to establish a folder, as the Web site home directory. As follows: Web site home Directory web site

D:\web\com Company website

D:\web\a a Department website

d:\web\b B Department Website

D:\web\c C Department Site

2, using the Web Site Administration Wizard, for the company and three departments to establish four Web sites, the four biggest difference is the use of different TCP ports:

Company Site A Department site B Department Site C Department site

IP Address 192.168.1.10

TCP port 80 8086 8087 8088

Permission to read and run scripts

Site Home directory d:\web\com d:\web\a d:\web\b d:\web\c

This allows the client to pass:

http://192.168.1.10 Visit the company site

http://192.168.1.10:8086 visit a Department site

http://192.168.1.10:8087 Visit B Department site

http://192.168.1.10:8088 Visit C Department site

This method establishes a Web site that uses a Non-default port with relative concealment, but this method maintains multiple sites requiring customers to type the actual numeric IP address before the port number. Cannot use host name and "Friendly name".



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.