Category: developers journal

Upgrade to Apache 2.4 and AddOutputFilterByType issue

Author: seven August 10, 2012

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.

Author
seven
CEO/CTO at Nivas®
Neven Jacmenović has been passionately involved with computers since late 80s, the age of Atari and Commodore Amiga. As one of internet industry pioneers in Croatia, since 90s, he has been involved in making of many award winning, innovative and successful online project. He is experienced full stack web developer, analyst and system engineer. In his spare time, Neven is transforming retro-futuristic passion into various golang, Adobe Flash and JavaScript/WebGL projects.

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

  • Syed Abidur Rahman
    Syed Abidur Rahman
    October 12, 2012 at 20:28

    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.

  • Wow thanks man. This had been giving me headaches for such a long time… phew!

  • Leave a Reply

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