[mod_wsgi] header filter

Igor Sysoev is at rambler-co.ru
Fri Oct 19 21:38:47 MSD 2007

On Fri, Oct 19, 2007 at 06:08:55PM +0200, Manlio Perillo wrote:

> Igor Sysoev ha scritto:
> >On Fri, Oct 19, 2007 at 05:07:37PM +0200, Manlio Perillo wrote:
> >
> >>I'm trying to define a custom header filter in mod_wsgi, but my filter 
> >>is not called.
> >>
> >>Is this supported?
> >
> >Yes, of course. It's seems that your module set in filter chain too late -
> >after ngx_htpt_header_filter_module.
> >
> >If you use "config" file configuration, you need to write there:
> >ngx_http_YOUR_filter_module"
> >
> The problem is that I defined the header filter *inside* the wsgi module.
> Now I have defined the header filter in a separate file, and it works.

The filter order is defined in objs/ngx_modules.c:


The two filters ngx_http_range_body_filter_module and
ngx_http_range_header_filter_module are in one file, but called in
different places.

Igor Sysoev

More information about the nginx mailing list