The Apache Haus Forum

Forum Topics => Apache 2.4 => Topic started by: mario on November 08, 2010, 03:58:26 PM

Title: AddOutputFilterByType removed
Post by: mario on November 08, 2010, 03:58:26 PM
I just upgraded my test server from 2.3.6 to 2.3.8 and noticed that it didn't restart. The error was that there isn't AddOutputFilterByType anymore. Also disapeared from the trunk docs.


AddOutputFilterByType DEFLATE text/html text/plain text/css


Any clue how to replace that wisely? I think SetOutputFilter DEFLATE is a good option.
Title: Re: AddOutputFilterByType removed
Post by: Gregg on November 08, 2010, 08:00:06 PM
load mod_filter

It is in the docs
http://httpd.apache.org/docs/trunk/mod/mod_filter.html#addoutputfilterbytype

mod_filter is going to end up being like mod_so I think, meaning a must always load module, cause there are a lot of things I'm finding becoming dependent on it.

Interestingly, it was this combo mod_filter/deflate that was having some ugly problems back in 2.3.5 I think.
Title: Re: AddOutputFilterByType removed
Post by: mario on November 09, 2010, 10:26:38 AM
Thanks, I've over seen that. Mod_so ... yepp nothing works on linux without it if not static compiled...  ;D

I think migritating complex config from 2.2 to 2.4 can become a nightmare like from 1.3 to 2.2
Title: Re: AddOutputFilterByType removed
Post by: Gregg on November 09, 2010, 05:26:34 PM
There will definitely need to be some thought to put into it. Simple configs will be no problem, load mod_access_compat, mod_filter and drop your old config in there.

You know, it's been over 3 years since I moved from 1.3 to 2.x but I do not remember it being that big a pain. As a matter of fact, once I got it going I was thinking it wasn't so bad and probably should have switched sooner.

Title: Re: AddOutputFilterByType removed
Post by: mario on November 10, 2010, 02:37:17 PM
Today I enabled the server-info page. For mod_filter I got
Module Name: mod_filter.c
Content handlers: none
Configuration Phase Participation: Create Directory Config, Merge Directory Configs
Request Phase Participation: Insert Filters
Module Directives:
FilterDeclare - filter-name [filter-type]
FilterProvider - filter-name provider-name match-expression
FilterChain - list of filter names with optional [+-=!@]
FilterTrace - filter-name debug-level
AddOutputFilterByType - DEPRECATED: output filter name followed by one or more content-types
FilterProtocol - filter-name [provider-name] protocol-args
Current Configuration:
In file: C:/Apache23/conf/extra/httpd-deflate.conf
   7: <Location />
   8:   AddOutputFilterByType DEFLATE text/html text/plain text/css
    : </Location>

--------------------------------------------------------------------------------


So if AddOutputFilterByType is DEPRECATED I'll have to RTFM to get to know how it works now. I hate RTFM  ;)
Title: Re: AddOutputFilterByType removed
Post by: Gregg on November 11, 2010, 05:53:19 AM
I hate it too! So when you RTFM, and figure it out, share the knowledge  ;D