Communicating between nginx' modules

Marcus Clyne ngx.eugaia at
Mon Dec 21 15:01:23 MSK 2009

Piotr Sikora wrote:
>> Or you can just use the functions you'd normally use to access your 
>> own module, e.g.
>> ngx_http_conf_get_module_loc_conf (cf, ngx_http_copy_filter_module);
> True, you can use those macros for accessing context:
> ngx_http_get_module_ctx(r, module)
> ngx_http_set_ctx(r, c, module)
> ...but in the end they will be expanded exactly to what I wrote 
> previously ;)
Sure, whatever takes your fancy. :-)


More information about the nginx-devel mailing list