IIS server formation strategy

  
"How can users on the Internet also browse to the home page placed on our own computer?" It can be used to solve IIS.
IIS (Internet Information Server) is a Web (Web) service component that includes a Web server, an FTP server, an NNTP server, and an SMTP server for web browsing, file transfer, news services, and mail. In terms of sending, 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 methods of IIS 5.0 that comes with Windows 2000 Advanced Server.
Prepare for the addition and operation of IIS
First, add IIS
Please enter the "Control Panel", select "Add /Remove Programs → Add /Remove Windows Components", "Internet Information Services (IIS) ") before the small hook is removed (if any), re-tick and follow the prompts to complete the IIS component. The IIS components added in this way will include all four services such as Web, FTP, NNTP, and SMTP.
Second, the operation of IIS
After the successful addition of IIS, then go to "Start → Programs → Administrative Tools → Internet Service Manager" to open the IIS Manager, for the service that has "stopped", are in Right click on it and select "Start" to open it.
The first IIS web server
First, establish the first Web site
For example, the IP address of this machine is 192.168.0.1, your own web page is placed in the D:\\Wy directory, the homepage of the webpage The file name is Index.htm, and now I want to build my own web server based on these.
For this Web site, we can use the existing "default Web site" to make the corresponding modifications, you can easily achieve. Please right click on the "Default Web Site" and select "Properties" to enter the interface named "Default Web Site Properties".
1. Modify the bound IP address: Go to the "Web Site" window, and then select the local IP address "192.168.0.1" you want to use in the drop-down menu after "IP Address".
2. Modify the home directory: Go to the "Home Directory" window, then enter the "Local Path" (or use the "Browse" button to select) the "D:\\Wy" directory where your web page is located.
3. Add the home page file name: Go to the "Documents" window, and then press the "Add" button. Enter the home page file name "Index.htm" of your web page after the "Default Document Name" according to the prompt.
4. Add a virtual directory: for example, your home directory is under "D:\\Wy", and you want to enter the format of "192.168.0.1/test" to get the web file in "E:\\All", which is inside Test" is the virtual directory. Right click on the "Default Web Site", select "New → Virtual Directory", enter "test" in the "Alias", enter "E:\\All" in the "Directory", and then follow the prompts. Added successfully.
5. Effect test: Open IE browser, enter "192.168.0.1" in the address bar and press Enter. At this point, you can call up the homepage of your own webpage, indicating that the setup is successful!
Second, add more Web sites
1. Multiple IPs correspond to multiple Web sites
If the machine is bound to multiple IP addresses and wants to use different IP addresses to get different Web pages, just right click on the "Default Web Site". Select "New → Site", and then enter any content for explaining it (for example, "My second Web site") at the "Description", and drop-down menu in "Enter the IP address used by the Web site". Select the IP address to be bound to it (as shown in Figure 1); after setting up the Web site, follow the previous steps to set it accordingly.
2. An IP address corresponds to multiple Web sites
After all the Web sites are established according to the previous method, for the virtual host, you can set different port numbers for each Web site, for example, to a Web site. For 80, one is set to 81, and one is set to 82... (as shown in Figure 2). For a Web site with port number 80, the access format is still directly IP address, and for the Web that binds other port numbers. For the site, you must add the corresponding port number after the IP address, that is, use the format such as "http://192.168.0.1:81".
Obviously, it is more troublesome to use the port number. If you have mapped all the domain names you need to this unique IP address in the DNS server, you can use the "host header name" method to allow you to 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 created (or set up) two Web sites, one is "Default Web Site" and the other is "My Second Web Site". Now you want to enter "www.enanshan.com" to directly access the former, enter "www.popunet.com" to directly access the latter. The operation steps are as follows:
(1) Please make sure that both of your domain names have been mapped to that IP address in the DNS server; and ensure that the port numbers of all Web sites remain at the default value of 80. .
(2) Then select "Default Web Site → Right click → Properties → Web Site", click the "Advanced" button on the right side of "IP Address", and double click on the "This site has multiple logos" That IP address (or click to select it and then press the "Edit" button), then enter "www.enanshan.com" under "Host Header Name" and press the "OK" button to save and exit (Figure 3).
(3) Then follow the same steps as above to set up a new host header called "www.popunet.com" for "My second Web site".
(4) Finally, open your IE browser, enter different URLs in the address bar, you can call up the contents of different Web sites.
3. Multiple domain names correspond to the same Web site
You only need to bind an IP address to the Web site first, then in the DNS server, map all the required domain names to your IP address, then you are Entering any domain name in the browser will directly get the content of the set website.
Third, the remote management of IIS services
1. Right click on the "Manage Web Site", select "Properties", then enter the "Web Site" window and select "IP Address".
2. Go to the "Directory Security" window, click the "Edit" button under "IP Address and Domain Name Restrictions", click "Authorize Access" to accept the client to manage IIS from outside the machine; last single Click the "OK" button.
3. Then enter a format such as "http://192.168.0.1:3598" (3598 for its port number) in the browser of any computer, a password inquiry window will appear, enter the administrator account name (Administrator) and corresponding After the password, you can log in successfully. Now you can remotely manage IIS in your browser! The scope that can be managed here mainly includes operations such as creating, modifying, starting, stopping, and deleting Web sites and FTP sites.
Fourth, this part of the FAQ
Q: In the above mentioned URLs, some added "http://", and some did not add, what does this mean?
A: There is no "http://" part of the URL, indicating that it can be added or not; and adding the "http://" part, it means it is essential! For URLs with port numbers, they must be added; otherwise they can be omitted.
Q: Can I replace the "friendly" name with the URL that refers to the IP address above?
A: Yes! In addition to being able to replace the computer name of the IIS server, you can also create a mapping table for the domain name and corresponding IP address in the DNS server, you can also use the domain name to access!
Q: I have set up a web server, but when I visit the web page, I get a password prompt window. Why is that?
A: When accessing the Web site, a password prompt window appears. Generally speaking, there are the following reasons. Please check them one by one:
1. The web page file accessed is itself encrypted. For example, the home file "iisstart.asp" under the original home directory "E:\\Inetpub\\wwwroot" of the "Default Web Site" requires a password.
2. There are no settings to allow anonymous access or make changes that should not be made. As shown in Figure 4, first make sure that the "Anonymous Access" item is checked; and the "User Name" item in the "Anonymous User Account" in "Edit" should be "IUSR_NODISK" (where "NODISK" The format of the computer name); in addition, you also need to check the "Allow IIS to control password" item.
3. Your target directory is restricted from access. This entry is only possible if the directory is in an NTFS format partition. Please right click on it, select "Properties", and then enter the "Security" window to see if the list is in the default state that allows the "Everyone" group to be fully controlled. If not, please change it back (Figure 5).
The second IIS FTP server
First, establish your FTP site
The first FTP site (ie "default FTP site") setting method and more FTP site establishment method, please refer to the previous article The related operations are executed in the web server. It should be noted that if you want to use an IP address corresponding to multiple different FTP servers, you can only use a different port number to achieve, rather than support the "host header name" approach.
For an established FTP server, access in the browser will use a format such as "ftp://192.168.0.1" or "ftp://192.168.0.1:22"; except for anonymous access users (Anonymous) In addition, FTP in IIS will use the user library that comes with Windows 2000 (you can find the "user" item in "Start → Programs → Administrative Tools → Computer Management" to manage the user library).
Second, this part of the FAQ
Q: How to modify the FTP server login or exit system prompt information?
A: Right click on the corresponding FTP site, select “Properties”, then go to the “Messages” window, enter the welcome message after successful login in “Welcome”, and enter the user exit when “Exit” The farewell information can be (Figure 6).
Q: After my FTP server is successfully established, except for the Administrator and Anonymous, ordinary users cannot log in on this machine; they can be used normally on other computers. Why is that?
A: Because of the default, normal users do not have permission to log in locally. If you want to modify, please go to "Start → Programs → Administrative Tools → Local Security Policy" and select "Left Frame → Local Policy → User Rights Assignment", then double-click the "Log on Locally" item in the right frame, and then the desired Normal users are added to its list.
The third IIS SMTP server
If you suspect that the free mail on the Internet to send mail is too slow, you may consider using IIS to establish a local SMTP server. Whether you are directly connected to the Internet or connected via LAN, whether you have a static IP address or a dynamic IP address, you can easily build success!
The method of setting up the SMTP server under IIS is very simple. Just put the "Default SMTP Virtual Server" in the IIS Manager in the started state; in addition, you don't need to do any other settings.
If you want to use your own SMTP server to send a letter, just fill in the "send mail server (SMTP)" item in your E-mail client software settings, fill in "localhost", regardless of your IP address Change, it works fine (Figure 7).
When you use your own SMTP server to send E-mail, not only does it have a sense of freedom from people, but also has a lightning-fast signaling speed, which is the best choice for personal SMTP server!

Copyright © Windows knowledge All Rights Reserved