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

            RemoteApp sporadic failureWindows 2008 RemoteAPP client disconnects within a matter of minutesWhat is the minimum version of RDP supported by Server 2012 RDS?How to configure a Remoteapp server to increase stabilityMicrosoft RemoteApp Active SessionRDWeb TS connection broken for some users post RemoteApp certificate changeRemote Desktop Licensing, RemoteAPPRDS 2012 R2 some users are not able to logon after changed date and time on Connection BrokersWhat happens during Remote Desktop logon, and is there any logging?After installing RDS on WinServer 2016 I still can only connect with two users?RD Connection via RDGW to Session host is not connecting

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos