Communicating between nginx' modules

Igor Sysoev igor at
Sat Dec 19 14:32:12 MSK 2009

On Sat, Dec 19, 2009 at 10:27:50AM +0100, Srebrenko Šehić wrote:

> Hi list,
> I'm looking for a way to communicate between unrelated modules.
> Something similar to Apache r->notes() where filters/handler can leave
> notes to each other during the duration of a request.
> What is the best way to achieve this?
> Perhaps a module A can put something in it's ctx() and module B can
> read it using ngx_http_get_module_ctx(r, ...)?

Yes, you may use the module contexts for this.

Igor Sysoev

More information about the nginx-devel mailing list