IIS's decision to turn on gzip and how to turn on gzip

Source: Internet
Author: User

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 has no problem, the problem is that PHP also opened the Gzip,iis when the conflict

Open the Gzip method

Just a little way. Enable compressed output of dynamic/static content by executing the following command from the command line:

Appcmd set Config/section:urlcompression/dodynamiccompression:trueappcmd set config/section:urlcompression/ Dostaticcompression:true Add a new Web Service Extension (if not originally), enter the full path of Gzip.dll.

Compression of additional file extensions on IIS 6.0
Modify the MetaBase.xml file hcfileextensions add additional file extensions.

Compression of additional file extensions on IIS 7.0
Modify the ApplicationHost.config file, add the appropriate mimetype, and specify activation. Open the file reference to the original line divert. May be set several times before it succeeds

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.