Module development question regarding ngx_http_get_module_loc_conf
aaron.bedra at gmail.com
Wed Jul 11 21:00:11 UTC 2012
Oh wow, I didn't realize that. I just tried another phase
(NGX_HTTP_PREACCESS_PHASE) and the configuration showed up as expected.
Thanks so much for pointing this out! The only other question is what phase
to put this in. When I use preaccess the header shows up twice.
On Wed, Jul 11, 2012 at 3:41 PM, Valentin V. Bartenev <ne at vbart.ru> wrote:
> 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.
> > full code to my module is at https://gist.github.com/3087852. 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
> > that they are getting set in via gdb. I'm guessing that I am forgetting
> > 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
> before NGX_HTTP_FIND_CONFIG_PHASE.
> wbr, Valentin V. Bartenev
> nginx-devel mailing list
> nginx-devel at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx-devel