question about ngx_http_named_location

Anatoli Marinov toli at
Wed Aug 29 11:43:04 UTC 2012

Hello Mates,
I am wondering why in ngx_http_named_location is used a segment of code 
that resets all modules contexts. I mean the line ngx_memzero(r->ctx, 
sizeof(void *) * ngx_http_max_module);.
My opinion is that the module context should not be touched outside of 
the certain module. Is there a special reason for this patch? Is there a 
case which requires it?

Thanks in advance
Anatoli Marinov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx-devel mailing list