Create a virtual Web host _ server under Win2K

Source: Internet
Author: User
Tags net domain

Is it possible to set up multiple WWW servers on a Windows server servers and have their own domain names? The answer is certainly yes. In fact, this is a network adapter binding multiple IP addresses, and then through multiple IP addresses to create different Web sites and assign them a domain name (that is, to create a so-called virtual web host). Typically, a computer has an IP address assigned to its network adapter, however, it may be more convenient for a Web server to have multiple IP addresses, because you can run multiple sites at the same time without having to bother to turn to a host header file (this header file specifies that you run multiple sites with an IP address). The author here briefly describes how to build multiple Web sites by specifying different IP addresses on a Web server. The system used is Windows Server, assuming the default Web site has been established on the Web server and a domain name has been established in the DNS server (host name is OK. Domain name is sailingnow.net), about how to set up a Web site and configure DNS services, in many computer magazines are introduced, this is not repeated here. The following is a detailed description of how to establish a virtual Web host under Windows Server.

Add IP Address

First log on to the Web server as an administrator.

Right-click My Network Places on the desktop, select Properties, select the Protocol option in the Network window that pops up, check TCP/IP communication protocol, and click the Properties button.

2 The name of the network adapter used and the specified IP address and subnet mask are displayed in the TCP/IP Properties dialog box that appears later. To specify more IP addresses (must be an idle IP address and do not duplicate IP addresses owned by other machines in the network), click Advanced to open the Advanced IP Addressing dialog box.

Click the Add button to enter the IP address and subnet mask you want to add (you can add more than one IP address), press "OK" button to close all dialog boxes, and restart your computer as prompted, This allows you to build multiple Web sites on a single Web server with one IP address per site.

Add a new Web site

When building a Web server, the system has established a default Web site and provides content services such as IIS Help for the system itself. However, if you can provide different services according to different needs, the creation of multiple Web sites is an ideal choice, such as creating an ASP program site to run the ASP program.

First create a physical directory on your hard disk that holds the Aspbbs program, such as D:\aspbbs.

Select Internet Server Manager to open ism in the Microsoft Internet Information Server Cascade entry for the Windows Option Pack program group.

The Internet Information Server opens in the left window, and a list of servers appears. Double-click the machine name to display all sites that can run on the machine, where at least you should see the Web and FTP default sites.

Right-click the machine name and select Web Site under the New menu bar. The new Web Site Wizard, which appears later, will guide you through the creation of your Web site step-by-step.

First enter the name of the site in the site Description edit area, such as Aspbbs.

Then specify the IP address and port number for the newly created site. In the IP address drop-down box, specify an IP address to add to the new site when adding an IP address, and the port number to the default value of 80.

Next, specify the physical path to the site, such as D:\aspbbs. Note that if you choose not to allow anonymous access, only the member workstations can access the site. (Computer World News)

The last thing you need to set up is the access rights for the site, with the following options:

Allow Read access (allow Read access)

Allow Script Access (allows scripting access)

Allow Execute access (allows you to perform a visit, including script access)

Allow Write access (allow Write access)

Allow Directory browsing (allow directory browsing)

Clicking the Finish button completes the creation of the Aspbbs site, at which point the site is stopped and has not been started. To start a new site, click the Start Item button in the toolbar or select start from the Context Association menu.

Right-click the new Web site, select the Properties property, switch to the Ducument tab of the Properties dialog box, and then add or remove the default document for the site (the default document is the page that is displayed to the visitor when the visitor only enters the site address in the browser). is generally the first page), at this point will be the new site to add the start file name.

To add a new site to a DNS server

With the previous settings, we can already access the new site through the IP address, and to make it easier to use the new site, we must add it to the DNS server.

Start the DNS Manager in the admin tools cascading menu, at which point there is at least one server name in the DNS server. Double-click the server name, there is a main area sailingnow.net, at this time we want to add a domain name for the new site there are two different methods, using different methods, the length of the domain name is not the same.

New area in the main area right-click the zone name sailingnow.net and select New domain. In the prompt dialog box for sailingnow.net fill in the new domain name Aspbbs, at this time under the Sailingnow.net domain name appears just established subdomain Aspbbs, right click Aspbbs, select "New Host", The machine name of the Web server is populated in the host name. In the host IP address bar, fill in the IP address of the previous new Web site, select "Create associated PTR record" and select "Add Host", and then select "OK" to return. When you add a domain name to the new site, enter http://ok.aspbbs.sailingnow.net in the URL, and the default document for the new site will appear in the browser.

  New primary area   Right-click the server name, select "New Zone", select "Primary" in the zone type, next fill in the area domain name aspbbs.com, the zone file to take the default value, and select "Finish" button to return. Then right-click the new zone you established aspbbs.com select New host. In the hostname, fill in the machine name of the Web server, fill in the host IP address bar with the corresponding IP address of the new Web site, select "Create Associated PTR record", select "Add Host", and finally select "OK" Return. Entering http: //ok.aspbbs.com in the URL also shows the default document for the new site.  

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.