Module development question regarding ngx_http_get_module_loc_conf

Valentin V. Bartenev ne at
Wed Jul 11 20:41:19 UTC 2012

On Thursday 12 July 2012 00:06:33 Aaron Bedra wrote:
> Hello,
> I have been banging my head against the wall trying to figure this out. The
> full code to my module is at It is
> obviously still a work in progress, but I'm stuck. I'm trying to add an
> argument to my directive. I have read the guides and looked at other
> modules and everyone seems to say to do the same thing.
> Basically, when I call
> rlcf = ngx_http_get_module_loc_conf(r, ngx_http_repsheet_module);
> the values set in ngx_http_repsheet aren't there anymore. I have confirmed
> that they are getting set in via gdb. I'm guessing that I am forgetting to
> do something or have overlooked something stupid here, but I just can't
> seem to find it. Any help is greatly appreciated.

You set your handler on NGX_HTTP_POST_READ_PHASE, that goes

 wbr, Valentin V. Bartenev

More information about the nginx-devel mailing list