Configure multiple websites on the server

Source: Internet
Author: User

There are many ways to place multiple websites on a server. For example, in IIS of Win2003, each Web site is identified by three parts (IP address, port number, Host header name) to receive and respond to requests, we usually use the Host Header, that is, the IP address and port number both use the same one, but are different through the Host Header:

1. Direct the domain names of all your websites (for example, www.iishc.com) to the IP address of your server (for example, 220.165.8.168 );

2. Create A directory for each website, such as website A in disk A and website B in disk B.

3. When using IIS to create a WEB site for each directory, enter the website domain name in the Host Header. The IP address can use the shared IP address and port number to use the default port 80.

You can use the preceding three steps to place multiple websites on one server.

Procedure:

1. create folders for the four companies on the win server as the Home Directory of the WEB site. The main directory of the WEB site: 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:
 
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 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 access company A site.
Http://www. B .com Access Company B site.
Http://www.c.com Access Company C site.
Http://www.d.com Access 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. Or
Click the site-> "properties"-> "WEB site" tag-> select "advanced" on the right of the IP address to jump out of "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.