mod_deflate, centos, application/x-httpd-phpApache mod deflate does not compress php outputContent Encoding Error when trying to use GZip on ApacheApache2 - mod_expire and mod_rewrite not working in httpd.conf - serving content from tomcatCan't seem to get mod_rewrite to set an environment variableEasyphp Web SetupHow to debug modsecurity_audit_logmod_deflate - Optimal configuration for most browsersApache/2.2.20 (Ubuntu 11.10) gzip compression won't work on php pages, content is chunkedNginx gives 504 Gateway Time-out once moved to liveApache / Nginx / Varnish - GZIP does not work on css, jsCompress content (mod_deflate) with chunked transfer encoding in Apache

What aircraft was used as Air Force One for the flight between Southampton and Shannon?

Separate SPI data

How to safely destroy (a large quantity of) valid checks?

How do free-speech protections in the United States apply in public to corporate misrepresentations?

With Ubuntu 18.04, how can I have a hot corner that locks the computer?

Can the removal of a duty-free sales trolley result in a measurable reduction in emissions?

Smart-expansion of a range to a list of numbers

Proving that a Russian cryptographic standard is too structured

bash does not know the letter 'p'

How can I make 12 tone and atonal melodies sound interesting?

Why not invest in precious metals?

Why are MBA programs closing in the United States?

Can all groups be thought of as the symmetries of a geometrical object?

How to hide rifle during medieval town entrance inspection?

Origin of "boor"

How can I end combat quickly when the outcome is inevitable?

How to communicate to my GM that not being allowed to use stealth isn't fun for me?

Is it expected that a reader will skip parts of what you write?

What does a topology do, and what makes a particular topology the 'right' one?

Does the new finding on "reversing a quantum jump mid-flight" rule out any interpretations of QM?

Will Roalesk, Apex Hybrid, trigger Sharktocrab twice?

Non-aqueous eyes?

The Frozen Wastes

New bike, tubeless tire will not inflate



mod_deflate, centos, application/x-httpd-php


Apache mod deflate does not compress php outputContent Encoding Error when trying to use GZip on ApacheApache2 - mod_expire and mod_rewrite not working in httpd.conf - serving content from tomcatCan't seem to get mod_rewrite to set an environment variableEasyphp Web SetupHow to debug modsecurity_audit_logmod_deflate - Optimal configuration for most browsersApache/2.2.20 (Ubuntu 11.10) gzip compression won't work on php pages, content is chunkedNginx gives 504 Gateway Time-out once moved to liveApache / Nginx / Varnish - GZIP does not work on css, jsCompress content (mod_deflate) with chunked transfer encoding in Apache






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I trying enable output compression for Apache 2.2.15, and 5.3.3, but web-pages generated by php is not compressing :(



My deflate.conf:



[user@host conf.d]# cat deflate.conf 
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

DeflateCompressionLevel 9

# Browser specific settings
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
BrowserMatch bOpera !no-gzip

# Setup custom deflate log
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %outstreamn/%instreamn (%ration%%)' deflate
# Example of log file
CustomLog logs/deflate_log DEFLATE


And string in vhost config file for logging:



CustomLog logs/vhost/deflate_log deflate


And what I see in log:



"GET /tag/%D0%BF%D0%BB%D1%83%D1%82%D0%BE%D0%BD/ HTTP/1.1" -/- (-%)
"GET /2011/02/28/%D1%88%D0%BA%D1%83%D1%80%D0%BA%D0%B8-%D1%81-%D0%B7%D0%BE%D0%BD%D0%B0%D0%BC%D0%B8-%D0%BF%D1%80%D0%BE%D0%B1%D0%B8%D1%82%D0%B8%D1%8F/ HTTP/1.1" -/- (-%)
"POST /wp-login.php HTTP/1.1" -/- (-%)
"GET /2011/04/08/%D0%BA%D0%B0%D0%BA-%D0%B7%D0%B0%D1%80%D0%B0%D0%B1%D0%B0%D1%82%D1%8B%D0%B2%D0%B0%D1%82%D1%8C-%D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%B5-%D0%BA%D1%80%D0%B5%D0%B4%D0%B8%D1%82%D0%BE%D0%B2-%D0%B2-world-of-tanks/ HTTP/1.1" -/- (-%)
"GET /wp-content/themes/the-erudite/css/erudite.css HTTP/1.1" 4368/15392 (28%)
"GET /wp-content/plugins/wp-table-reloaded/css/plugin.css?ver=1.9.4 HTTP/1.1" 396/980 (40%)
"GET /wp-content/plugins/wp-downloadmanager/download-css.css?ver=1.50 HTTP/1.1" 457/1980 (23%)
"GET /wp-content/uploads/2012/03/first-120x240-3.gif HTTP/1.1" -/- (-%)
"GET /wp-content/plugins/loginza/img/vkontakte.png HTTP/1.1" -/- (-%)
"GET /wp-includes/js/comment-reply.min.js?ver=3.7.1 HTTP/1.1" 387/753 (51%)
"GET /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1 HTTP/1.1" 3050/7200 (42%)
"GET /wp-content/themes/the-erudite/js/common.js HTTP/1.1" 2570/6379 (40%)
"GET /wp-content/themes/the-erudite/js/jquery.scrollTo-min.js?ver=1.4.2 HTTP/1.1" 1181/2252 (52%)
"GET /wp-content/plugins/wp-recaptcha/recaptcha.css HTTP/1.1" 584/1739 (33%)
"GET /wp-includes/js/jquery/jquery.js?ver=1.10.2 HTTP/1.1" 32725/93085 (35%)


What is wrong?










share|improve this question
























  • check this answer: serverfault.com/questions/555140/…

    – regilero
    Nov 17 '13 at 11:58











  • Also this answer: stackoverflow.com/questions/5230202/…

    – JakeGould
    Nov 17 '13 at 13:22

















1















I trying enable output compression for Apache 2.2.15, and 5.3.3, but web-pages generated by php is not compressing :(



My deflate.conf:



[user@host conf.d]# cat deflate.conf 
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

DeflateCompressionLevel 9

# Browser specific settings
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
BrowserMatch bOpera !no-gzip

# Setup custom deflate log
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %outstreamn/%instreamn (%ration%%)' deflate
# Example of log file
CustomLog logs/deflate_log DEFLATE


And string in vhost config file for logging:



CustomLog logs/vhost/deflate_log deflate


And what I see in log:



"GET /tag/%D0%BF%D0%BB%D1%83%D1%82%D0%BE%D0%BD/ HTTP/1.1" -/- (-%)
"GET /2011/02/28/%D1%88%D0%BA%D1%83%D1%80%D0%BA%D0%B8-%D1%81-%D0%B7%D0%BE%D0%BD%D0%B0%D0%BC%D0%B8-%D0%BF%D1%80%D0%BE%D0%B1%D0%B8%D1%82%D0%B8%D1%8F/ HTTP/1.1" -/- (-%)
"POST /wp-login.php HTTP/1.1" -/- (-%)
"GET /2011/04/08/%D0%BA%D0%B0%D0%BA-%D0%B7%D0%B0%D1%80%D0%B0%D0%B1%D0%B0%D1%82%D1%8B%D0%B2%D0%B0%D1%82%D1%8C-%D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%B5-%D0%BA%D1%80%D0%B5%D0%B4%D0%B8%D1%82%D0%BE%D0%B2-%D0%B2-world-of-tanks/ HTTP/1.1" -/- (-%)
"GET /wp-content/themes/the-erudite/css/erudite.css HTTP/1.1" 4368/15392 (28%)
"GET /wp-content/plugins/wp-table-reloaded/css/plugin.css?ver=1.9.4 HTTP/1.1" 396/980 (40%)
"GET /wp-content/plugins/wp-downloadmanager/download-css.css?ver=1.50 HTTP/1.1" 457/1980 (23%)
"GET /wp-content/uploads/2012/03/first-120x240-3.gif HTTP/1.1" -/- (-%)
"GET /wp-content/plugins/loginza/img/vkontakte.png HTTP/1.1" -/- (-%)
"GET /wp-includes/js/comment-reply.min.js?ver=3.7.1 HTTP/1.1" 387/753 (51%)
"GET /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1 HTTP/1.1" 3050/7200 (42%)
"GET /wp-content/themes/the-erudite/js/common.js HTTP/1.1" 2570/6379 (40%)
"GET /wp-content/themes/the-erudite/js/jquery.scrollTo-min.js?ver=1.4.2 HTTP/1.1" 1181/2252 (52%)
"GET /wp-content/plugins/wp-recaptcha/recaptcha.css HTTP/1.1" 584/1739 (33%)
"GET /wp-includes/js/jquery/jquery.js?ver=1.10.2 HTTP/1.1" 32725/93085 (35%)


What is wrong?










share|improve this question
























  • check this answer: serverfault.com/questions/555140/…

    – regilero
    Nov 17 '13 at 11:58











  • Also this answer: stackoverflow.com/questions/5230202/…

    – JakeGould
    Nov 17 '13 at 13:22













1












1








1








I trying enable output compression for Apache 2.2.15, and 5.3.3, but web-pages generated by php is not compressing :(



My deflate.conf:



[user@host conf.d]# cat deflate.conf 
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

DeflateCompressionLevel 9

# Browser specific settings
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
BrowserMatch bOpera !no-gzip

# Setup custom deflate log
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %outstreamn/%instreamn (%ration%%)' deflate
# Example of log file
CustomLog logs/deflate_log DEFLATE


And string in vhost config file for logging:



CustomLog logs/vhost/deflate_log deflate


And what I see in log:



"GET /tag/%D0%BF%D0%BB%D1%83%D1%82%D0%BE%D0%BD/ HTTP/1.1" -/- (-%)
"GET /2011/02/28/%D1%88%D0%BA%D1%83%D1%80%D0%BA%D0%B8-%D1%81-%D0%B7%D0%BE%D0%BD%D0%B0%D0%BC%D0%B8-%D0%BF%D1%80%D0%BE%D0%B1%D0%B8%D1%82%D0%B8%D1%8F/ HTTP/1.1" -/- (-%)
"POST /wp-login.php HTTP/1.1" -/- (-%)
"GET /2011/04/08/%D0%BA%D0%B0%D0%BA-%D0%B7%D0%B0%D1%80%D0%B0%D0%B1%D0%B0%D1%82%D1%8B%D0%B2%D0%B0%D1%82%D1%8C-%D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%B5-%D0%BA%D1%80%D0%B5%D0%B4%D0%B8%D1%82%D0%BE%D0%B2-%D0%B2-world-of-tanks/ HTTP/1.1" -/- (-%)
"GET /wp-content/themes/the-erudite/css/erudite.css HTTP/1.1" 4368/15392 (28%)
"GET /wp-content/plugins/wp-table-reloaded/css/plugin.css?ver=1.9.4 HTTP/1.1" 396/980 (40%)
"GET /wp-content/plugins/wp-downloadmanager/download-css.css?ver=1.50 HTTP/1.1" 457/1980 (23%)
"GET /wp-content/uploads/2012/03/first-120x240-3.gif HTTP/1.1" -/- (-%)
"GET /wp-content/plugins/loginza/img/vkontakte.png HTTP/1.1" -/- (-%)
"GET /wp-includes/js/comment-reply.min.js?ver=3.7.1 HTTP/1.1" 387/753 (51%)
"GET /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1 HTTP/1.1" 3050/7200 (42%)
"GET /wp-content/themes/the-erudite/js/common.js HTTP/1.1" 2570/6379 (40%)
"GET /wp-content/themes/the-erudite/js/jquery.scrollTo-min.js?ver=1.4.2 HTTP/1.1" 1181/2252 (52%)
"GET /wp-content/plugins/wp-recaptcha/recaptcha.css HTTP/1.1" 584/1739 (33%)
"GET /wp-includes/js/jquery/jquery.js?ver=1.10.2 HTTP/1.1" 32725/93085 (35%)


What is wrong?










share|improve this question
















I trying enable output compression for Apache 2.2.15, and 5.3.3, but web-pages generated by php is not compressing :(



My deflate.conf:



[user@host conf.d]# cat deflate.conf 
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

DeflateCompressionLevel 9

# Browser specific settings
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
BrowserMatch bOpera !no-gzip

# Setup custom deflate log
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %outstreamn/%instreamn (%ration%%)' deflate
# Example of log file
CustomLog logs/deflate_log DEFLATE


And string in vhost config file for logging:



CustomLog logs/vhost/deflate_log deflate


And what I see in log:



"GET /tag/%D0%BF%D0%BB%D1%83%D1%82%D0%BE%D0%BD/ HTTP/1.1" -/- (-%)
"GET /2011/02/28/%D1%88%D0%BA%D1%83%D1%80%D0%BA%D0%B8-%D1%81-%D0%B7%D0%BE%D0%BD%D0%B0%D0%BC%D0%B8-%D0%BF%D1%80%D0%BE%D0%B1%D0%B8%D1%82%D0%B8%D1%8F/ HTTP/1.1" -/- (-%)
"POST /wp-login.php HTTP/1.1" -/- (-%)
"GET /2011/04/08/%D0%BA%D0%B0%D0%BA-%D0%B7%D0%B0%D1%80%D0%B0%D0%B1%D0%B0%D1%82%D1%8B%D0%B2%D0%B0%D1%82%D1%8C-%D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%B5-%D0%BA%D1%80%D0%B5%D0%B4%D0%B8%D1%82%D0%BE%D0%B2-%D0%B2-world-of-tanks/ HTTP/1.1" -/- (-%)
"GET /wp-content/themes/the-erudite/css/erudite.css HTTP/1.1" 4368/15392 (28%)
"GET /wp-content/plugins/wp-table-reloaded/css/plugin.css?ver=1.9.4 HTTP/1.1" 396/980 (40%)
"GET /wp-content/plugins/wp-downloadmanager/download-css.css?ver=1.50 HTTP/1.1" 457/1980 (23%)
"GET /wp-content/uploads/2012/03/first-120x240-3.gif HTTP/1.1" -/- (-%)
"GET /wp-content/plugins/loginza/img/vkontakte.png HTTP/1.1" -/- (-%)
"GET /wp-includes/js/comment-reply.min.js?ver=3.7.1 HTTP/1.1" 387/753 (51%)
"GET /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1 HTTP/1.1" 3050/7200 (42%)
"GET /wp-content/themes/the-erudite/js/common.js HTTP/1.1" 2570/6379 (40%)
"GET /wp-content/themes/the-erudite/js/jquery.scrollTo-min.js?ver=1.4.2 HTTP/1.1" 1181/2252 (52%)
"GET /wp-content/plugins/wp-recaptcha/recaptcha.css HTTP/1.1" 584/1739 (33%)
"GET /wp-includes/js/jquery/jquery.js?ver=1.10.2 HTTP/1.1" 32725/93085 (35%)


What is wrong?







apache-2.2 centos php mod-deflate






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 17 '13 at 13:31









JakeGould

3,2491836




3,2491836










asked Nov 17 '13 at 11:46









HayateHayate

1166




1166












  • check this answer: serverfault.com/questions/555140/…

    – regilero
    Nov 17 '13 at 11:58











  • Also this answer: stackoverflow.com/questions/5230202/…

    – JakeGould
    Nov 17 '13 at 13:22

















  • check this answer: serverfault.com/questions/555140/…

    – regilero
    Nov 17 '13 at 11:58











  • Also this answer: stackoverflow.com/questions/5230202/…

    – JakeGould
    Nov 17 '13 at 13:22
















check this answer: serverfault.com/questions/555140/…

– regilero
Nov 17 '13 at 11:58





check this answer: serverfault.com/questions/555140/…

– regilero
Nov 17 '13 at 11:58













Also this answer: stackoverflow.com/questions/5230202/…

– JakeGould
Nov 17 '13 at 13:22





Also this answer: stackoverflow.com/questions/5230202/…

– JakeGould
Nov 17 '13 at 13:22










1 Answer
1






active

oldest

votes


















0














This answer gives the best summary of issues that can pop up in Apache 2.2 with mod_deflate. The solution is to use filter_module & deflate_module instead:



# Declare a "gzip" filter, it should run after all internal filters like PHP or SSI
FilterDeclare gzip CONTENT_SET

# "gzip" filter can change "Content-Length", can not be used with range requests
FilterProtocol gzip change=yes;byteranges=no

# Enable "gzip" filter if "Content-Type" contains "text/html", "text/css" etc.
FilterProvider gzip DEFLATE resp=Content-Type $text/html
FilterProvider gzip DEFLATE resp=Content-Type $text/css
FilterProvider gzip DEFLATE resp=Content-Type $text/javascript
FilterProvider gzip DEFLATE resp=Content-Type $application/javascript
FilterProvider gzip DEFLATE resp=Content-Type $application/x-javascript

# Add "gzip" filter to the chain of filters
FilterChain gzip





share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f555545%2fmod-deflate-centos-application-x-httpd-php%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This answer gives the best summary of issues that can pop up in Apache 2.2 with mod_deflate. The solution is to use filter_module & deflate_module instead:



    # Declare a "gzip" filter, it should run after all internal filters like PHP or SSI
    FilterDeclare gzip CONTENT_SET

    # "gzip" filter can change "Content-Length", can not be used with range requests
    FilterProtocol gzip change=yes;byteranges=no

    # Enable "gzip" filter if "Content-Type" contains "text/html", "text/css" etc.
    FilterProvider gzip DEFLATE resp=Content-Type $text/html
    FilterProvider gzip DEFLATE resp=Content-Type $text/css
    FilterProvider gzip DEFLATE resp=Content-Type $text/javascript
    FilterProvider gzip DEFLATE resp=Content-Type $application/javascript
    FilterProvider gzip DEFLATE resp=Content-Type $application/x-javascript

    # Add "gzip" filter to the chain of filters
    FilterChain gzip





    share|improve this answer





























      0














      This answer gives the best summary of issues that can pop up in Apache 2.2 with mod_deflate. The solution is to use filter_module & deflate_module instead:



      # Declare a "gzip" filter, it should run after all internal filters like PHP or SSI
      FilterDeclare gzip CONTENT_SET

      # "gzip" filter can change "Content-Length", can not be used with range requests
      FilterProtocol gzip change=yes;byteranges=no

      # Enable "gzip" filter if "Content-Type" contains "text/html", "text/css" etc.
      FilterProvider gzip DEFLATE resp=Content-Type $text/html
      FilterProvider gzip DEFLATE resp=Content-Type $text/css
      FilterProvider gzip DEFLATE resp=Content-Type $text/javascript
      FilterProvider gzip DEFLATE resp=Content-Type $application/javascript
      FilterProvider gzip DEFLATE resp=Content-Type $application/x-javascript

      # Add "gzip" filter to the chain of filters
      FilterChain gzip





      share|improve this answer



























        0












        0








        0







        This answer gives the best summary of issues that can pop up in Apache 2.2 with mod_deflate. The solution is to use filter_module & deflate_module instead:



        # Declare a "gzip" filter, it should run after all internal filters like PHP or SSI
        FilterDeclare gzip CONTENT_SET

        # "gzip" filter can change "Content-Length", can not be used with range requests
        FilterProtocol gzip change=yes;byteranges=no

        # Enable "gzip" filter if "Content-Type" contains "text/html", "text/css" etc.
        FilterProvider gzip DEFLATE resp=Content-Type $text/html
        FilterProvider gzip DEFLATE resp=Content-Type $text/css
        FilterProvider gzip DEFLATE resp=Content-Type $text/javascript
        FilterProvider gzip DEFLATE resp=Content-Type $application/javascript
        FilterProvider gzip DEFLATE resp=Content-Type $application/x-javascript

        # Add "gzip" filter to the chain of filters
        FilterChain gzip





        share|improve this answer















        This answer gives the best summary of issues that can pop up in Apache 2.2 with mod_deflate. The solution is to use filter_module & deflate_module instead:



        # Declare a "gzip" filter, it should run after all internal filters like PHP or SSI
        FilterDeclare gzip CONTENT_SET

        # "gzip" filter can change "Content-Length", can not be used with range requests
        FilterProtocol gzip change=yes;byteranges=no

        # Enable "gzip" filter if "Content-Type" contains "text/html", "text/css" etc.
        FilterProvider gzip DEFLATE resp=Content-Type $text/html
        FilterProvider gzip DEFLATE resp=Content-Type $text/css
        FilterProvider gzip DEFLATE resp=Content-Type $text/javascript
        FilterProvider gzip DEFLATE resp=Content-Type $application/javascript
        FilterProvider gzip DEFLATE resp=Content-Type $application/x-javascript

        # Add "gzip" filter to the chain of filters
        FilterChain gzip






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 23 '17 at 12:41









        Community

        1




        1










        answered Nov 17 '13 at 13:22









        JakeGouldJakeGould

        3,2491836




        3,2491836



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f555545%2fmod-deflate-centos-application-x-httpd-php%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company