Upgrade to Apache 2.4 and AddOutputFilterByType issue

For quite some time now, we have been using Apache module mod_deflate to gzip some static content served by Apache automatically:

AddOutputFilterByType DEFLATE text/html text/css application/x-javascript

If you upgraded from Apache 2.2 to 2.4, you will notice error in your apache log:
Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration.

To fix this, enable mod_filter and restart Apache. mod_filter is required in 2.4, although in 2.2 was not the case.

2 thoughts on “Upgrade to Apache 2.4 and AddOutputFilterByType issue”

  1. Thanks for this article. This has said what I have to do. I think you can tell us how to enable that with shell command or manually.

    Thanks again.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>