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. <div>
<br></div><div>Cheers,</div><div><br></div><div>Aaron<br><br><div class="gmail_quote">On Wed, Jul 11, 2012 at 3:41 PM, Valentin V. Bartenev <span dir="ltr"><<a href="mailto:ne@vbart.ru" target="_blank">ne@vbart.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thursday 12 July 2012 00:06:33 Aaron Bedra wrote:<br>
> Hello,<br>
><br>
> I have been banging my head against the wall trying to figure this out. The<br>
> full code to my module is at <a href="https://gist.github.com/3087852" target="_blank">https://gist.github.com/3087852</a>. It is<br>
> obviously still a work in progress, but I'm stuck. I'm trying to add an<br>
> argument to my directive. I have read the guides and looked at other<br>
> modules and everyone seems to say to do the same thing.<br>
><br>
> Basically, when I call<br>
><br>
> rlcf = ngx_http_get_module_loc_conf(r, ngx_http_repsheet_module);<br>
><br>
> the values set in ngx_http_repsheet aren't there anymore. I have confirmed<br>
> that they are getting set in via gdb. I'm guessing that I am forgetting to<br>
> do something or have overlooked something stupid here, but I just can't<br>
> seem to find it. Any help is greatly appreciated.<br>
><br>
<br>
</div></div>You set your handler on NGX_HTTP_POST_READ_PHASE, that goes<br>
before NGX_HTTP_FIND_CONFIG_PHASE.<br>
<br>
wbr, Valentin V. Bartenev<br>
<br>
_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
</blockquote></div><br></div>