Re: Filter insertion and ordering

2013-01-15 Thread Brian Akins
On Jan 15, 2013, at 5:35 AM, Nick Kew wrote: > > Thanks. Yes, that was of course the problem. > > I guess control of my ordering relative to other modules isn't available? > Nick, FWIW, we write most of our nginx modules as Lua modules now. Sometimes almost all of the module is actually in

Re: Filter insertion and ordering

2013-01-15 Thread Nick Kew
On 8 Jan 2013, at 13:52, Maxim Dounin wrote: > Filter ordering is determinded during configure - config script of > your module should place it into appropriate list, usually > HTTP_AUX_FILTER_MODULES. Your symptoms suggests you've added your > filter module into HTTP_MODULES list instead. T

Re: Filter insertion and ordering

2013-01-08 Thread Maxim Dounin
Hello! On Tue, Jan 08, 2013 at 12:34:43PM +, Nick Kew wrote: > OK, so my module needs to insert filters. > I put the usual in a post_config function: > >/* Insert headers_out filter */ > ngx_http_next_header_filter = ngx_http_top_header_filter; > ngx_http_top_header_filter = my_header_

Filter insertion and ordering

2013-01-08 Thread Nick Kew
OK, so my module needs to insert filters. I put the usual in a post_config function: /* Insert headers_out filter */ ngx_http_next_header_filter = ngx_http_top_header_filter; ngx_http_top_header_filter = my_header_filter; /* Insert body_out filter */ ngx_http_next_body_filter = ngx_http_to