One of the reasons that IIS turned on Gzip failed: conflict resolution _win Server

Source: Internet
Author: User
But there is a server did not succeed, looked for the reason, did not find, today suddenly thought of an aspect, hurriedly try, the reason is this.

Gzip is a popular file compression algorithm, now the application is very wide, when the application of gzip compressed to a plain text file, the effect is very obvious, can be reduced by more than 70% of the file size. Use the GZIP compression algorithm to compress the content of the Web page and then transfer it to the client browser. This compression actually reduces the number of bytes transmitted by the network, the most obvious advantage is that it can speed up the loading of the Web page, in addition to saving traffic, improve the user's browsing experience, there is a potential benefit of gzip and search engine crawl tool has a better relationship. For example, Google can retrieve pages faster than normal manual fetching by directly reading gzip files. These benefits are not limited to static content, and ASP, ASPX, PHP dynamic pages, and other dynamically generated content can greatly improve the performance of your Web site by using gzip compression, plus other performance tuning mechanisms and corresponding server-side caching rules.

First description of the next server environment: Windows2003+iis+php+isapi Rewrite, check the configuration of IIS has no problem, but the query HTTP status is not open gzip State, today, access to the server last Discuz forum at the bottom of a line of information: Gzip on. A flash of inspiration, is it the PHP itself with the gzip and IIS conflict? Start testing, open the PHP configuration file, turn off the php_zip.dll extension, and restart IIS.

After the operation is completed, the detection status, is now turned on the gzip state. The original gzip open batch file without any problems, the problem is that PHP also opened the Gzip,iis when the conflict. Also illustrates another problem, php.ini's processing priority is higher than MetaBase.xml.


Article from: Poly Friends

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.