iis| Beginner
Introduction: The use of IIS to publish Web site information, is not a new topic; However, in addition to having the ability to publish Web sites, IIS has a number of unobtrusive features that make it possible to efficiently manage your site. If you don't believe me, please come and have a glimpse of some of the new IIS applications:
Using IIS to publish Web site information is no longer a new topic; But in addition to having the ability to publish Web sites, IIS has a number of unobtrusive details that can be cleverly leveraged to achieve efficient management of the site. If you don't believe me, please come and have a look at some of the new IIS apps that will help you manage your site better.
Quickly add Web site information with focus on the document footer
Many sites will be at the bottom of the main page with the site name information, copyright information, and so on, if we want the name of these sites, copyright information can appear in the designated site on all pages how to achieve it? Maybe some people say that the method of adding directly to the problem is not solved. However, this method can only be used for a few site pages, if the site contains more pages, manually in each page to add the site name, copyright information will be extremely large. In fact, using the "Enable Document Footer" feature of IIS, we can easily add the site name and copyright information at the bottom of each page of the website, the following is the detailed implementation steps to quickly add the copyright information of the website:
First Use web page editing tools such as FrontPage to design Web site name information, copyright information, and other information into HTML-formatted Web page files that will be automatically sent by the IIS server as a document footer to each page below the specified Web site; To ensure the performance of the Web server , we recommend that when designing a document footer file, try not to use too complex HTML code, rather than using some simple color or text.
After you have finished designing the document footer, click the Start/Settings/Control Panel command, in the Open System Control Panel window, double-click the Administrative Tools icon, and then double-click the Internet Information Services Manager item in the window that follows to enter the IIS console interface; Right-click the site name of the specified Web site, click Properties from the pop-up shortcut menu, and then click the document tab in the IIS Property Settings window that appears, and open the label page shown in Figure 1. Next, select the Enable Document Footer option in the label page. Then, in the text box that you want to select, enter the exact path information for the document footer file that you created earlier, and then click OK, so that IIS automatically sends the contents of the document page to the pages below the current Web site. It is worth mentioning that the above method is only suitable for the static page of the site, and the ASP and other dynamic pages do not work.
Figure 1 IIS Site Properties
System error-oriented, efficient debugging Web site procedures
Now many Web sites will use ASP program, in order to test their own written ASP program is correct, many designers will be written on the ASP program uploaded to the Web server, and then through IE browser to verify the correctness of the ASP program; In the process of debugging ASP program, Some IE browsers simply report "Internal errors to the user", and do not give details of what is wrong with the currently accessed ASP program. Is there any way to let IE browser to automatically report the specific error of the website files, so as to help the site designers quickly and efficiently debug the program? The answer is yes, we can skillfully use the error function of the IIS system, to the Web site ASP program detailed errors report to the user, The following are the steps to achieve this:
Click Start/Programs/Administrative Tools/Internet Information Services Manager command, and in the IIS console window that pops up, right-click the name of the target Web site you want to debug, and execute the Properties command in the right-click menu to open the property settings interface for the target site.
Click the Home Directory tab in the interface, and then click the Configure button in the corresponding Options settings interface, go to the Application configuration settings interface, click the Debug tab in the interface, open the Options Settings page as shown in Figure 2, and then send the detailed ASP error message to the client on the page. Item selected, and then click the "Apply" button, so that IE browser in the future can be the specific error of the ASP program to display, designers based on detailed error message can quickly debug the site.
Figure 2 IIS Script debugging
Focus on file deletion, cleverly restore damaged sites
Some Web sites that are controlled by IIS often appear to fail to download some of the site's files, which is usually caused by a corrupted system file associated with IIS. To get these sites back to normal, many network managers go directly to the Add or Remove Programs window to remove the Internet Information Services component and then reinstall the Internet Information Services component and configure the relevant parameters for the specified Web site; but it turns out that This does not allow the specified site to restore the download function, what is the reason for this, how can we quickly restore the damaged site?
In fact, when we perform a delete operation on the Internet Information Services component in the Add or Remove Programs window, we do not remove the system files that should be components from the hard disk; When we reinstall the Internet Information Services component, the system may still invoke the previously compromised system files. In this way, reloading the Internet Information Services component may not be very useful.
In order to solve the above problems, the author after several practical verification, found that in the Add or Remove Programs window to remove the Internet Information Services components, you also need to enter the system's Explorer window, IIS-related "X:\Inetpub", "X:\Windows\ System32\inetsrv "(where x is the disk partition on which the Windows system resides) is removed to prevent the installation of the damaged system files from being reinstalled when the Internet Information Services component is installed, and then restart the server system on which the Web site resides. And the correct way to install the Internet Information Services components again, and finally the site for a reasonable configuration, you can be the designated damaged site back to normal.
Increase Web Access speed by focusing on connection restrictions
The bandwidth resources of each website are limited, if the number of connections to a Web site is greater in a given time, the less bandwidth each connection has to share from the site, the slower the access to the site, and conversely, if the number of concurrent access connections to a site is limited to a lower value, The greater the bandwidth that each connection is sharing from the site, the faster it will be to visit the site. To ensure that your site is always able to provide a high speed access connection, we might as well start with the connection restrictions for IIS to subtly limit the number of concurrent access connections to a lower value, which is the following steps:
Click Start/Programs/Administrative Tools/Internet Service Manager command, and in the IIS console window that pops up, right-click the name of the target Web site you want to debug, and execute the Properties command in the right-click menu to open the property settings interface for the target site.
Click the Performance tab in the interface to go to the Options Settings page as shown in Figure 3. At the site connection, select the connection limit as option, and set the number of connections to the site in the text box that corresponds to the option; The maximum number of connections that are typically accessed at the same time as a personal site should be limited to the "100" person, The maximum number of connections to the Unit Web site should be no more than "500". Set the above parameters, and then click the "OK" button, and finally restart the Web server system can make the settings effective.
Figure 3 IIS Site Properties