Issues related to GIZP compression in Wamp

Source: Internet
Author: User
The problem of GIZP compression in Wamp is turned on
1, first loadmodule deflate_module modules/mod_deflate.so
LoadModule Headers_module modules/mod_headers.so
I got rid of the # before the two lines.
2.
Setoutputfilter DEFLATE
# Don ' t compress images and other
Setenvifnocase Request_uri. (?: gif|jpe?g|png) $ no-gzip dont-vary
Setenvifnocase Request_uri. (?: Exe|t?gz|zip|bz2|sit|rar) $ no-gzip dont-vary
Setenvifnocase Request_uri. (?:p df|doc) $ no-gzip dont-vary

So Apache can start up normally.
But once that happens,

Setoutputfilter DEFLATE
# Don ' t compress images and other
Setenvifnocase Request_uri. (?: gif|jpe?g|png) $ no-gzip dont-vary
Setenvifnocase Request_uri. (?: Exe|t?gz|zip|bz2|sit|rar) $ no-gzip dont-vary
Setenvifnocase Request_uri. (?:p df|doc) $ no-gzip dont-vary
Addoutputfilterbytype DEFLATE text/html text/plain text/xml text/css

Apache can't start, it's always yellow. Ask God for answers
------to solve the idea----------------------
This sentence means that all are being gzip
Setoutputfilter DEFLATE

These three sentences exclude the following types not gzip
Setenvifnocase Request_uri. (?: GIF
------to solve the idea----------------------
Jpe?g
------to solve the idea----------------------
PNG) $ no-gzip dont-vary
Setenvifnocase Request_uri. (?: exe
------to solve the idea----------------------
T?gz
------to solve the idea----------------------
Zip
------to solve the idea----------------------
bz2
------to solve the idea----------------------
Sit
------to solve the idea----------------------
RAR) $ no-gzip dont-vary
Setenvifnocase Request_uri. (?:p DF
------to solve the idea----------------------
DOC) $ no-gzip dont-vary

This sentence means text/html text/plain text/xml text/css for gzip
Addoutputfilterbytype DEFLATE text/html text/plain text/xml text/css

Please don't write like this.
or use Setoutputfilter DEFLATE to rule out.
Either directly with Addoutputfilterbytype DEFLATE text/html text/plain text/xml text/css
  • 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.