Filter insertion and ordering

Brian Akins brian at
Tue Jan 15 11:54:23 UTC 2013

On Jan 15, 2013, at 5:35 AM, Nick Kew <niq at> wrote:
> Thanks.  Yes, that was of course the problem.
> I guess control of my ordering relative to other modules isn't available?

FWIW, we write most of our nginx modules as Lua modules now.  Sometimes almost all of the module is actually in C.  We can control the exact order per request using Lua.  

Contrived example:

local foo = require 'nginx.foo_filter'
local bar = require 'nginx.bar_filter'

if something then
  return run_filters(ngx, { foo, bar })
  return run_filters(ngx, { bar, foo})


More information about the nginx-devel mailing list