Simple configuration of DNS in the operating system

Source: Internet
Author: User
Tags first row web services administrator password

Build the actual directory of the domain and virtual hosts on the hard disk first, and create the following three actual directories:

C: \ inetpub\ wwwroot\ MyWeb

C: \ inetpub\ wwwroot\ AAA

C: \ inetpub\ wwwroot\ BBB

Establishing domains and virtual hosts

1. In NT, NT4 Option packs the Internet Service Manager in Microsoft Internet Information Server in the Run menu;

2. Right-click the computer name, and in the pop-up menu, select "Web Site" in "new";

3. In the site description, type: www.myweb.com, click Next;

4. In the IP address bar, select the IP address assigned to the site (you can assign the same IP address to multiple sites), and click Next.

5. In the home directory path, type: c: \ inetpub \ wwwroot \ myweb, click Next.

6. Click "Www.myweb.com" in the "End" Site Directory

7. Right-click www.myweb.com and select Properties from the pop-up menu.

8. On the Web Site tab, click Advanced, and then double-click the first row of IP addresses in the first column, type: www.myweb.com in the host ID name, and click OK.

Then repeat the above 8 steps, and change the corresponding items to aaamywehcom, bbb.myweb.com, the main directory path for C: \ inetpub\wwwroot\aaa, C:\INETPUB\WWWROOT\BBB can. At this point, the domain and the virtual host are established.

The implementation of the virtual server built as above requires support for HTTP1. 1 of browsers, IE3.0 above, Netscape3.0 above all support HTTP1.1. The IIS4 virtual Server feature only supports Web services and does not support FTP services.

If you have Internet Service Manager (HTML) installed in the Option Pack, you can also remotely manage settings for the virtual host.

The specific actions are:

1. Right-click Manage Web site in Internet Service Manager, select Properties, view the TCP port in the Web Site tab, note the value, or change it, such as "1327";

2. On the Directory Security tab, click Edit in the IP address and Network Name Restrictions column, and then click Grant Access or set the appropriate settings.

Then you can manage it remotely. Type on the address bar of the client browser (for example, the server's IP address is 192.) 168. 0. 1): http://192.168.0.1:1327, type the administrator password to enter the management system.

You can do most of the work of IIS management here. However, features such as adding users, adding IP addresses, and so on can only be done locally on the server.

Set the host file or DNS

Only to implement the above steps can not browse the virtual host in the browser, you must use the Hosts file or domain Name System (DNS) to implement host name to IP address resolution.

Hosts files or DNS can be used on the LAN, and DNS is only available on the Internet.

1. Settings for Hosts file

The Hosts file for Windows 95/98 is in the Windows directory, and the Hosts file for Windows NT is in the WINNT\SYSTEM32\DRIVERS\ETC directory. Open the Hosts file with a text editor and add the following lines (assuming the IP address is 192.168.0.1):

192.168.0.1 ww.myweb.com

192.168.0.1 aaa.myweb.com

192.168.0.1 bbb.myweb.com

Copy into the corresponding directory on the computer in the local area network, and then you can access the virtual host with http://aaa.myweb.com on the client or server.

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.