IIS (Internet Information Server, Internet Information Services) is a web (web page) service component, including web servers, FTP servers, NNTP servers, and SMTP servers, which are used for web browsing, file transfer, news services, and mail delivery. It makes it easy to publish information on the network (including the Internet and LAN). This article will tell you about the configuration and management method of IIS 5.0 in the Windows 2000 Advanced Server Edition.
Prepare the addition and operation of IIS
First, IIS added
Please enter the "Control Panel", select "Add / Remove Programs → Add / Remove Windows Components", remove the hook before "Internet Information Service (IIS)" (if any), re-check, press the prompt operation Complete the addition of IIS components. All four services such as Web, FTP, NNTP, and SMTP are included in the IIS components added to this method.
Second, IIS operation
When IIS is added successfully, then enter the "Start → Program → Administration Tools → Internet Service Manager" to open the IIS manager, and the right-click on the "Stop" word, select "Start" Open.
First IIS Web Server
First, establish the first Web site
For example, this machine's IP address is 192.168.0.1, and its own web page is placed in the D: / WY directory, the page file name of the web page is index.htm, and now I want to build your own web server according to these.
For this Web site, we can easily implement the appropriate modifications with the existing "default Web site". First click on the Default Web Site, select "Properties" to enter the interface named "Default Web Site Properties" setting interface.
1. Modify the bound IP address: Go to the "Web Site" window, select the native IP address "192.168.0.1" you want to use in the drop-down menu after the IP address.
2. Modify the main directory: Go to the Home Directory window, then in the Local Path input (or select the "D: / Wy" directory where yourself in your web page is available.
3. Add a home file name: Go to the Document window, press the "Add" button, enter the home file name "Index.htm" of your web page after prompting the "Default Document Name".
4. Add a virtual directory: For example, your home directory is under "D: / Wy", and you want to enter the "E: / All" web file, this "192.168.0.1/test" format Test "is a virtual directory. Please click Right-click on the "Default Web Site" and select "New → Virtual Directory". In turn, enter "Test" at the "alias". When entering "E: / ALL" at the "Directory", then press the prompt operation. Added successfully.
Nanshan 5. Effect test: Open IE browser, press "192.168.0.1" after entering "192.168.0.1" in the address bar, then you can call the home page of your own web page, then the setting is successful!
Second, add more Web sites
1. Multiple IPs correspond to multiple Web sites
If the unit has bind multiple IP addresses, you want to use different IP addresses to get different web pages, just click the right-click on the Default Web Site, select "New → Site", then according to the prompt In the "Description", enter anything to explain its content (such as "My Second Web Site"), select the IP address that you need to bind it to it at the drop-down menu of "IP Address Used in Enter Web Site". Come (Figure 1); after the WEB site is established, the corresponding setting is performed in the step method. 2. An IP address corresponds to multiple web sites to create all the Web sites with a higher web site, for the virtual host, can be implemented by setting different port numbers to each web site, such as setting a Web site to 80, One set to 81, one set to 82 ... (as shown in Figure 2), the port number is the WEB site of 80, the access format is still directly IP address, and for the web site that binds other port numbers, access At the time of the IP address, the corresponding port number must be added, i.e., such as "http://192.168.0.1:81" format.
Obviously, it will be trouble after the port number is changed. If you have already mapped all the domain names you need in the DNS server to this unique IP address, you can use the different "Host Name" methods to let you use the domain name to complete access to different web sites. For example, if you have only one IP address of 192.168.0.1, you have established (or set) two Web sites, one is "default web site", one is "My Second Web Site", now you want Enter "www.enanshan.com" to access the former directly, enter "www.popunet.com" to access the latter directly. The steps are as follows:
(1) Make sure you have mapped you in the DNS server to the IP address; and make sure all the port numbers of all Web sites are kept at 80 default values.
(2) Select "Default Web Site → Right Key → Properties → Web Site", click the "Advanced" button on the right side of IP Address, "Double-click Existing IP Address" (Or click "Edit" button after selecting it), then enter "WWW.enanshan.com" under the Host Name "and then press the" OK "button to save exit.
(3) Then set the new host name "www.xxxx.com" by the same method as the same method.
(4) Finally, open your IE browser, enter different URLs in the address bar, you can call out the contents of different web sites.
3. Multiple domains correspond to the same Web site
You just need to bind a IP address to the Web site. In the DNS server, all the desired domain names are mapped to your IP address, then you enter any domain name in your browser, you will get directly The content of the item set.
Third, remote management for IIS services
1. On the Manage Web Sites, right-click, select "Properties", then enter the Web Site window, select "IP Address".
2. Go to the Directory Security window, click Edit button under "IP Address and Domain Limit", click "Authorization Access" to manage IIS from local machines; last single Click the "OK" button.
3. Then enter the format of "http://192.168.0.1:3598" http://192.168.0.1:3598" (3598 for its port number), and enter the administrator and corresponding to the administrator. After password, you can log in successfully, and now you can remotely manage IIS in your browser! Here, the range can be managed mainly including new construction, modification, start, stop, and deletion of Web sites and FTP sites. Fourth, this part is common questions
Q: In the URL mentioned above, some add "http: //", some did not add, what does this mean?
A: There is no URL with "http: //" section, indicating that it can be added; and the "http: //" section is added, then it is essential! For the URL with the port number must be added; otherwise it can be omitted.
Q: Do you replace the name "Friendly" name for the URL involved above
A: Yes! In addition to being able to replace the computer name where the IIS server is located, it can also create a new domain name and corresponding IP address in the DNS server, or use domain names to access!
Q: I set up a web server, but when I access the webpage, the password prompt window appears. Why is that?
A: When accessing the Web site, the password prompt window appears. Generally, there is the following reason, please check one by one:
1. The web files accessed itself plus secrets. For example, the "Default Web Site" The home file "iisstart.asp" under the primary directory "IISStart.asp" is required.
2. No settings allow anonymous access or should not be changed. As shown in Figure 4, first ensure that "Anonymous Access" is checked; and "User Name" in "Anonymous User Account" in "Edit" should be "IUSR_NODISK" (where "Nodisk" The format for the computer name; in addition, it is also necessary to check one of the "Allow IIS Control Password".
3. Your target directory is limited to access. This may only appear when the directory is located in the NTFS format partition. Please click right click, select "Properties", then enter the "Security" window, see if it is the default "Everyone" group in the list, if not, please change