13 Strokes optimize IIS server to achieve optimal performance status

Source: Internet
Author: User
Keywords IIS Server reached HTTP extended

Windows server's own Internet Information Server (Internet Information Server,iis) is a common tool for building Web servers, a simple and cumbersome thing, and novice users can use IIS to erect a respectable web site, But configuring, optimizing the performance of IIS, so that the performance of the Web site access is not a simple thing, here I will explain how step-by-step optimization of your IIS server.

Server-side environment, we take Windows Server 2003 IIS6.0 as an example, the client environment is Mozilla Firefox 3.0, and the Yahoo YSlow extension is installed.

YSlow is a firebug based plugin released by the Yahoo developer team. The ability to analyze Web pages and rate them according to the rules of some high-performance Web sites is a great help for Web page performance optimization, telling you which parts affect your Web page speed and how to optimize based on certain rules. Our optimization strategy for IIS is based on YSlow.

Use the YSlow Firefox to open the target site, then click the YSlow icon and click Configured.

Where configured grade for YSlow rating your site, a (100 points) is the highest, F is the lowest, the following list of how to modify, I take IIS 6.0 as an example of how to optimize the performance of the site.

1, reduce the number of HTTP requests

This is mainly to modify the site code, reduce the number of external pictures, CSS, JS and other files, manually merge multiple css/javascript files. There is no setting for IIS.

2. Use CDN

For small sites, this is a free bar. Of course, rich people can try, can solve the problem that the user visits the website to be slow in the technology.

3. Enable Content Expiration

Enabling content expiration for static files can improve access performance. First, the site's directory to be divided into reasonable, pictures, CSS, JavaScript are placed in a separate directory, and then select the directory in IIS, point attribute HTTP header, enable content expiration, you can choose 30 days after the past, so that the user browser will compare the current date and due date, To decide whether to display cached pages or requests for updates from the server, because pictures, CSS, and JS usually have less change, so they are basically read from the local cache, which speeds up the display.

4. Enable gzip compression

HTTP compression is a way to transfer compressed text content between Web servers and browsers. HTTP compression uses a common compression algorithm such as gzip compression HTML, JavaScript, or CSS files. The biggest benefit of compression is that it reduces the amount of data transferred by the network, thereby increasing the access speed of the client browser.

Using the method, right-click the Web site-> properties and select Services. In the HTTP Compression box, select Compress static files, and the temporary directory recommends setting up a separate directory for the other disk.

Then, in IIS Manager, right-click the Web service Extensions-> "Add a new Web service extension", enter "Httpcompression" in "extension", and add "required files" as C:\WINDOWS\system32\inetsrv\ Gzip.dll, where the Windows system directory may vary depending on your installation, select Set extended status to allow.

Finally, the use of a text editor to open C:\Windows\System32\inetsrv\MetaBase.xml, in the hcfileextensions to add the need to compress the static file suffix name, the default is HTML and TXT file, the proposed add JS, CSS, etc., do not add pictures or zip, etc. have been compressed files.

Related Article

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.