The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: AddOutputFilterByType removed  (Read 5973 times)

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 586
AddOutputFilterByType removed
« 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.

Code: [Select]
AddOutputFilterByType DEFLATE text/html text/plain text/css

Any clue how to replace that wisely? I think SetOutputFilter DEFLATE is a good option.
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 849
Re: AddOutputFilterByType removed
« Reply #1 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.
 
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 586
Re: AddOutputFilterByType removed
« Reply #2 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
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 849
Re: AddOutputFilterByType removed
« Reply #3 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.

Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 586
Re: AddOutputFilterByType removed
« Reply #4 on: November 10, 2010, 02:37:17 PM »

Today I enabled the server-info page. For mod_filter I got
Code: [Select]
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 [[email protected]]
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  ;)
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 849
Re: AddOutputFilterByType removed
« Reply #5 on: November 11, 2010, 05:53:19 AM »

I hate it too! So when you RTFM, and figure it out, share the knowledge  ;D
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13