Reputation: 1749
My old server is running Apache 2.2. It has mod_deflate enabled. It was a pretty easy setup, you just un-comment the LoadModule
line, and then add the following:
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript application/javascript text/css application/xml image/svg+xml
But now I'm setting up a new server running Apache 2.4 This isn't working in 2.4 and I'm not sure why. Everything seems to be enabled and configured correctly.
BUT I also read that using AddOutputFilterByType
is deprecated anyway. So, what are the alternate/better ways to enable this on-the-fly compression? I suppose if I could easily enable based on file extension, that would work just as good.
Upvotes: 2
Views: 1348
Reputation: 17872
There's no problem with this directive in 2.4, you should just use the convenient form. Using mod_filter directly is quite challenging.
The 2.4 manual says "Had severe limitations before being moved to mod_filter in version 2.3.7"
Upvotes: 4