Access the WEB server with Chinese domain name

  
                  In 2006, the most popular Chinese domain name on the Internet except the World Cup. After Microsoft released the news that IE7.0 will fully support Chinese domain names, China has set off a wave of squatting Chinese domain names. Many companies and individuals have registered their Chinese domain names for reasons such as brand protection. Although, there is still a long time since the official release of IE7.0, it is still possible to appreciate the charm of Chinese domain names in advance. Here's a look at how to use Chinese domain names in Windows 2003 to access your own web server.

One. How to make IIS support Chinese domain name

First, let me know how to make IIS support Chinese domain name.

Because the internationalized domain names processed by Nameprep are represented as Unicode sequences. However, the existing DNS system only supports domain names represented by ASCII characters, so ACE (ASCII-compatible encoding) encoding is applied to the Unicode sequence, and the domain name represented by the Unicode sequence is converted into the ACE domain name represented by the ASCII string.

PunyCode is an efficient ACE encoding designed for internationalized domain names. It can perform unique and reversible conversions between Unicode sequences and ASCII strings. During the conversion process, the ASCII characters in the Unicode sequence remain unchanged, and the internationalized characters are represented by letters and numbers. Its essence is a general-purpose algorithm that uses a limited number of basic characters (letters and numbers) to uniquely represent characters in a large character set (Unicode). Characters in domain names, including ASCII and Unicode, are treated as integers.

In other words, to enable IIS to support Chinese domain names, you only need to enter the Chinese domain name in the place where you can enter the Chinese domain name. Of course, the specific conversion calculation process does not need to be done by yourself. Here are two ways to get the domain name PunyCode.

(1) If the domain name is registered with ORAY, log in to the ORAY console and enter the domain name management. In the domain name status, the Chinese domain name PunyCode will be displayed.

Figure 1 View the PUNYCODE of the domain name in the console of ORAY<2> (2) Use the Chinese domain name online transcoding program provided by CNNIC. After opening http://www.cnnic.net.cn/html/Dir/2003/10/29/1112.htm, enter the Chinese domain name to be converted, and then select "Transfer to punycode" and submit.

Figure 2 Conversion tool provided by CNNIC

Fig. 3 Results after conversion

What is Nameprep?

Nameprep is "A Stringprep Profile for Internationalized Domain Names (IDN)", which describes how to prepare a multilingual domain name, including mapping, normalizing, and prohibiting filtering of a domain name field.

Two. Installing IIS Components

Windows Server 2003 is installed by default. It does not install IIS 6. It needs to be installed separately. The steps are as follows:

Open Control Panel's "Add/Remove Programs" - Windows Components Wizard - Application Server - Check "Asp.NET" and the system will automatically associate "Internet Information Services (IIS)" The service is also installed. As shown below:

Figure 4 Installing IIS

After selecting the service to be installed, the installation wizard will prompt you to insert the Windows 2003 installation CD, insert the installation disk and follow the prompts to install, IIS The WEB will be installed automatically soon.

Three. Creating a WEB Website

1. Open the Internet Information Services (IIS) Manager and open it by typing “Inetmgr” in the “Run” menu of the Start menu, or by using the Control Panel – Administrative Tools.

Figure 5 Internet Information Services (IIS) Manager interface

2. Right click on "Website" - New - Website - Next, here is required to enter the site description, this description is inside IIS One of the identifications is just to identify different sites for your own convenience. Here, enter "Dynamic Domain Name .net".

Figure 6 Creating a new site

3. (1) Website IP address: Generally, if there is no special requirement, you can select “all unallocated”. (2) Port: Generally use the default value of 80, then you do not need to add a port number when you visit your website. If you switch to another port, you need to add a port after the domain name, for example, change the port to 8080. In the browser, you need to enter http://domain name: 8080 for access, and the previous HTTP cannot be omitted. (3) Host header: When you want to create multiple websites, you only need to set them here. If there is only one website on your server, leave it blank.

Figure 7 Settings when creating a new site


After pressing Next, IIS will ask you to set the directory where the website is located. Then set the permissions of the website. If your website needs to run a script such as ASP, select "Run script (such as ASP)". In this way, the establishment of the entire site is basically completed.

Figure 8 Setting Website Access Rights

4. IIS 6 has a more "WEB Service Extension" function than IIS 5. If it is not set correctly, then other script pages such as ASP will not display properly. Double-click "Web Service Extension", then right click on Active Server Pages (ASP) and select "Allow" to open support for ASP.

Figure 9 IIS6 settings

Through the above steps, the completion of a single website.

Four. Setting up host header settings for multiple websites

In fact, many times you need to set up multiple websites for IIS. By setting the host header of IIS, different domain names can be accessed to different sites. However, in the host header settings, it is not allowed to input Chinese. Therefore, before the setting, the Chinese domain name should be converted into the PunyCode code, and then the PunyCode corresponding to the Chinese domain name can be filled in the host header setting. Here, the "dynamic domain name .net" and "Chinese domain name test .net" are taken as examples to illustrate the setting of the IIS host header of the Chinese domain name.

In the above article, the PunyCode corresponding to "Dynamic Domain Name .net" and "Chinese Domain Name Test .net" are known as "xn--6fR65A27F61K.net" and "xn--fiQ06L2rDsvScfJi99B.net" ". And the "Dynamic Domain Name.net" website has been established, and then its host header is modified. Right click on the website, select Properties - Website - Advanced, click on the "Edit" button inside, you can modify the settings of the host header, enter "xn--6fR65A27F61K.net". Next, create a new website for "Chinese Domain Name Test .net" and fill in the host header with "xn--fiQ06L2rDsvScfJi99B.net".

Figure 10 Setting the host header

Figure 11 Setting the host header 2

So far, the IIS multiple Chinese domain names correspond to the settings of the host headers of multiple websites. Visitors can access their corresponding websites by entering "Dynamic Domain Name .net" or "Chinese Domain Name Test .net".

V. Access the host with a Chinese domain name

1. Because the "Dynamic Domain Name .net" and "Chinese Domain Name Test .net" used here are the dynamic domain names of ORAY, you must first log in to the client program on the server using the peanut shell passport corresponding to the domain name, and the domain name can be correctly resolved to the server. IP address. Of course, if your domain name is applied for by another local registrar and has already pointed to the IP address of the server, you can omit this step.

Figure 12 Setting the IP of the host in the peanut shell

2. Also, let's first take a look at what is i-Nav. i-Nav is a browser plugin provided by VeriSign, the leading digital trust service provider. With this plugin, you can directly enter the Chinese domain name in the browser, or click on the link in the web page to access the website corresponding to the Chinese domain name.

So, when a visitor enters "http://dynamic domain name.net" in the browser: (1) If the "i-Nav" plugin is installed on the computer, then the domain name can be opened directly. Corresponding website. (2) If the "i-Nav" plugin is not installed on the computer, it will go to VERISIGN to prompt the installation. If the visitor does not want to install the plugin, after clicking "No, thank you", they will go to the configured website.

Figure 13 Installation of the optional "i-Nav" plugin

Open the IE browser and access the "Dynamic Domain Name .net" and "Chinese Domain Name Test.net" respectively. Is the result of the test. Here to remind everyone, don't forget to set the default home page document for the website, otherwise it may cause the website to be inaccessible. (The home page document can be set in the "Properties" - "Documents" of the site)

Figure 14 Chinese domain name access example one

Figure 15 Chinese domain name access example two

Copyright © Windows knowledge All Rights Reserved