AddOutputFilterByType removed

Started by mario, November 08, 2010, 03:58:26 PM

Previous topic - Next topic

mario

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.

Gregg

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.

mario

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

Gregg

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.


mario

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  ;)

Gregg

I hate it too! So when you RTFM, and figure it out, share the knowledge  ;D