Welcome! Log In Create A New Profile

Advanced

Re: Module development question regarding ngx_http_get_module_loc_conf

Aaron Bedra
July 11, 2012 05:02PM
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.

Cheers,

Aaron

On Wed, Jul 11, 2012 at 3:41 PM, Valentin V. Bartenev <ne@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.
> The
> > 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
> 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
> before NGX_HTTP_FIND_CONFIG_PHASE.
>
> wbr, Valentin V. Bartenev
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Module development question regarding ngx_http_get_module_loc_conf

Aaron Bedra 1143 July 11, 2012 04:08PM

Re: Module development question regarding ngx_http_get_module_loc_conf

Valentin V. Bartenev 472 July 11, 2012 04:42PM

Re: Module development question regarding ngx_http_get_module_loc_conf

Aaron Bedra 576 July 11, 2012 05:02PM

Re: Module development question regarding ngx_http_get_module_loc_conf

Valentin V. Bartenev 626 July 11, 2012 05:46PM

Re: Module development question regarding ngx_http_get_module_loc_conf

Aaron Bedra 722 July 11, 2012 06:20PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 147
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready