Use the top ten principles of IIS (IIS expiration time, IIS cache settings) [reprinted]

Source: Internet
Author: User
Tags iis administration metabase

Article Source

1. custom error page
Although the custom error page is simple, only a few administrators can use it effectively. The administrator can map the HTTP Error message to an absolute URL or a file on the server in MMC. For more information, see here. If you think this is too troublesome, want a simpler method, or you want developers to define their own error pages, and do not want them to have the permission to use MMC, you can use a tool like customer error.

2. metabase Research
If you think Apache is powerful because it has a configuration file, you should check how powerful metabase is in IIS. Metabase allows the Administrator to complete all work on IIS, such as creating a virtual directory, stopping, starting, or pausing a Web site, and creating, deleting, disabling, or enabling an application.Program. Microsoft provides metaedit, a visualization tool, to help you read and write metabase. You can download the latest version here. To use metabase more effectively, you should try the command line interface-IIS administration script (adsutil for short. vbs. You can find it in the C: \ Inetpub \ adminscripts or % SystemRoot % \ system32 \ inetsrv \ adminsamples directory.
Note: metabase is very important to the normal operation of the web site. Do not destroy it. Remember: you must back up data before making any changes.

3. automatically corrected URL spelling errors
Apache advocates are always boasting about some of Apache's small functions, the coolest of which is "automatically correcting URL spelling errors". Now, IIS administrators can also play with these small functions, use urlspellcheck to automatically correct URL spelling errors. In this experiment, www.urlspellcheck.com/fak.htmand www.urlspellcheck.com/faq1.htm. the spelling of the second mistake will be automatically corrected.

4. Rewrite URLs
Apache advocates have always boasted about the powerful functions of mod_rewrite. Nowadays, there are so many products for IIS, many of which are easier to use than mod_rewrite. Because mod_rewrite is used, you must be familiar with regular expressions. Try iiswrite or ISAPI rewrite.

5. Detect browsers
It is silly to assume that everyone who browses the site uses the same browser or screen size. You can use JavaScript to detect the visitor's browser. If you are using IIS, you will have a better choice-browserhawk of cyscape, which is not compared with Apache. Cyscape recently launched a new product called cuntryhawk, which can be used to detect the region (country) of visitors ). Unfortunately, so far, I have no language-sensitive or regional-sensitive content to use.

6. site content Compression
IIS 5 has a built-in compression function. To be honest, it is just too bad. Use pipeboost.

7. Web application Cache
You can set the expiration time for different files or directories, open the IIS Information Server, right-click the site content, and click Properties. In the displayed form, you can set the expiration time. If you want developers to set it by themselves, please
Use software such as cacheright and xcache.
It takes some time and money to effectively use the cache, but when you see a rise in access traffic, the website diary becomes very small because there are not countless 304 responses, and the bandwidth traffic is also greatly reduced, you will understand why this is necessary. There are not many sites with good cache settings. On the contrary, there areArticleOn the Internet, you can see this: Brian David son's page, Mark nottheim, And what AOL has to say.

8. tuning Server
The tuning server is not a small question and requires a monograph to explain it. There are some good basic tutorials and help on the Internet, such as Brett Hill and Microsoft's own knodge DGE base article. Of course, if you don't want to spend the time, use this -- xtune.

9. Enhance site security
There may be a lot of people attacking the site now, but as long as you are willing to make a little effort, you will not be a fool who will only sit and beat. Finding out your server information and operating system information is the first target of attackers. Therefore, first, do not expose your HTTP header to let others know that you are running IIS, use software such as servermask to delete or replace the HTTP header. Second, you can delete unnecessary file extensions to further install your server environment. In addition, you can also scan problematic URL requests. Microsoft provides you with a free tool called URLScan.

10. Patch, patch, patch!
You should download and install the latest patch. You can go to the Microsoft Site or http://www.cert.org/and use iisfor keyword query.
Okay, this is my summary of IIS Management 10. Some of these 10 items are unnecessary in IIS 6, but for the w2k and nt iis administrators, using these 10 items can make you have a good sleep.

[This article is not original, reproduced from the following link: http://vfxx.com/article.asp? Id = 360]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.