IIS is the interface that plays all client service requests. Different from the general structure, it is the way to deal with ASP documents. When IIS receives a service request from an ASP document, it will call the necessary ISAPI or DLL program to interpret and execute the ASP program. After processing, IIS will convert the result into HTML format and return it to the user's Web browser.
In order to provide services to clients correctly, the following components are required:
1, set IIS and its affiliated related directories correctly;
2. Windows NT account;
3. DLL components;
4. Security settings of 4.Windows NT;
In addition, depending on the different functions that the Web server needs to provide, a database system or an e-mail system may be needed.
IIS provides a way to set data access rights from the hard disk directory, but all this needs to be set according to the account when installing IIS. By default, IIS sets basic read or execute permissions for each directory, which you can set through IIS Manager.
Note: You must use NTFS format to set file-level read permissions!
Because the security models of IIS and Windows NT are completely integrated, it is very important to know the permissions of users and groups. The main points you should consider should include the following:
1, the user needs enough rights to perform the task. For example, the user running active components must have the right to execute these active components, including FeleSystemObject registered by ASP, otherwise there will be runtime errors!
2. Set appropriate security permissions for anonymous login. You can use IIS Manager and Network User Administrator to set appropriate security permissions for users who log in to IIS anonymously.
3. Make further settings through NTFS. You can set the access rights of each user or group to different components according to the needs of the program.
IIS server structure list
IIS(Internet Information Server) is a kind of Web service component, including Web server, FTP server, NNTP server and SMTP server, which is used for web browsing, file transmission, news service and email sending. It makes it easy to publish information on the network (including Internet and LAN). This article will tell you how to configure and manage IIS 5.0 included in Windows 2000 Advanced Server Edition.
Prepare for the addition and operation of IIS
First, add IIS.
Please enter the control panel, select Add/Remove Programs → Add/Remove Windows Components, remove the check mark in front of Internet Information Services (IIS) (if any), check it again, and then follow the prompts to add IIS components. IIS components added in this way will include all four services, such as Web, FTP, NNTP and SMTP.
Second, the operation of IIS
After successfully adding IIS, go to Start → Programs → Administrative Tools →Internet Service Manager and open IIS Manager. For services marked as Stopped, right-click them and select Start to open them.
The first Web server of IIS.
First, build the first website.
For example, the IP address of this machine is192.168.0.1,and its own webpage is placed in the D:\Wy directory, and the homepage file name of the webpage is Index.htm. Now I want to build my own web server based on these.
For this website, we can use the existing "default website" to make corresponding changes, and then we can easily implement it. Please right-click the default website and select Properties to enter the default website property setting interface.
1. Modify the bound IP address: enter the Website window, and then select the required local IP address192.168.0.1in the drop-down menu after IP address.
2. Modify the home directory: Go to the home directory window, and then enter (or use the browse button to select) the "D:\Wy" directory where your web page is located.
3. Add the first page file name: enter the "Documents" window, press the "Add" button, and enter the first page file name "Index.htm" after the "Default Document Name" as prompted.
4. Add a virtual directory: For example, if your home directory is under "D:\Wy" and you want to enter the format of "192.168.0.1/test", you can call up the web page file in "E:\All", and the inside. Right-click the default website, select New → Virtual Directory, enter "test" in "Alias" and "E:\All" in "Directory", and then follow the prompts to add successfully.
5. Effect test: Open IE browser, enter "192.168.0.1"in the address bar, and then press enter. At this time, you can bring up the home page of your own webpage, indicating that the setting is successful!
Second, add more websites.
1. Multiple IPS correspond to multiple websites. If this machine is bound with multiple IP addresses, and you want to use different IP addresses to get different web pages, just right-click the default website and select New → Site, and then enter anything in the description (for example, "My second website") and enter the website used to describe it. When this website is established, make corresponding settings according to the previous method.
2. One IP address corresponds to multiple websites. After all websites are established according to the above method, virtual hosts can be realized by setting different port numbers for each website. For example, if a website is set to 80, a website is set to 8 1, and a website is set to 82 ..., then for a website with port number 80, the direct access format is still an IP address. For websites with other port numbers, you must add the corresponding port number after the IP address, that is, use ""to access the former directly, and enter "www.popunet.com" to access the latter directly. The operation steps are as follows:
Please first make sure that both your domain names are mapped to this IP address in the DNS server; And ensure that the port numbers of all websites remain at the default value of 80.
Select the default URL → right click → properties → URL, click the Advanced button on the right side of the IP address, double-click the existing IP address under "This site has multiple logos" (or click to select it and press the Edit button), then enter "www.enanshan.com" under "Hostname", and press the OK button to save and exit.
Then, set a new host header named "www.popunet.com" for "My Second Website" in the same way as in the previous step.
Finally, open your IE browser and enter different web addresses in the address bar, and you can call up the contents of different websites.
3. Multiple domain names correspond to the same website.
You only need to bind an IP address to the website first, and then map all required domain names to your IP address in the DNS server. Enter any domain name in the browser, and you will get the content of the set website directly.
Third, the remote management of IIS services
1. Right-click "Manage Website" and select "Properties", then enter the Website window and select "IP Address".
2. Go to the directory security window, click the edit button under the restriction of IP address and domain name, and click "authorize access" to allow the client to manage IIS from outside the computer. Finally, click the OK button.
3. You need a password to enter the homepage file "iisstart.asp" under "pub\wwwroot" in the browser of any computer.
2. Anonymous access is not set or should not be changed. First, make sure "anonymous access" is selected; And the "user name" item in the "anonymous user account" in the "edit" below should be in the format of "IUSR_NODISK" (where "NODISK" is the computer name); In addition, you need to check "Allow IIS to control passwords".
3. Access to the target directory is restricted. This item is only possible if the directory is in a partition in NTFS format. Right-click 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 have full control. If not, please change it back.
The second FTP server of IIS
First, set up your FTP site
For the setting method of the first FTP site (that is, the "default FTP site") and the establishment method of more FTP sites, please refer to the relevant operations in the previous Web server. It should be noted that if you want to use an IP address to correspond to multiple different FTP servers, you can only use different port numbers, and the "host name" method is not supported.
For the established FTP server, "FTP:/192.168.0.1"or "FTP:/192.168.0./kl" will be used to access in the browser. Except anonymous users, FTP in IIS will use the user library that comes with Windows 2000 (you can find "User" in Start → Programs → Administrative Tools → Computer Management to manage the user library).
Second, this part of the FAQ.
Q: How to modify the system prompt information when the FTP server logs in or logs out successfully?
Answer: Right-click the corresponding FTP site, select Properties, and then enter the Message window, enter the welcome information after successful login in Welcome, and enter the farewell information when the user exits in Exit.
Q: Why can't ordinary users log on to this computer except administrators and anonymous users after my FTP server is successfully established? It can be used normally on other computers. Why is this?
A: Because by default, ordinary users don't have permission to log on to this computer. If you want to modify it, please go to Start → Programs → Administrative Tools → Local Security Policy, select the left box → Local Policy → User Permission Assignment, then double-click the "Local Login" item in the right box, and then add the required ordinary users to its list.
Article 3 SMTP server of IIS
If you think those free emails on the Internet are too slow to send emails, you can consider setting up a local SMTP server with IIS. Whether you connect directly to the Internet or access through a local area network, whether you have a static IP address or a dynamic IP address, you can easily establish it successfully.
The method of establishing SMTP server under IIS is very simple, just set the "default SMTP virtual server" to the startup state in IIS Manager. In addition, generally do not need to do any other settings.
If you want to send mail with your own SMTP server, just fill in "localhost" in the "SMTP" item in your email client software settings, and it will work normally no matter how your IP address changes.
When you use your own SMTP server to send mail, you not only have a sense of freedom from interference from others, but also have lightning-fast sending speed, which is the best choice for personal SMTP server.