Re: Is there a wait to get at a module's main conf inside the loc conf's init?

2017-08-17 Thread Maxim Dounin
Hello! On Thu, Aug 17, 2017 at 02:34:20AM -0400, ptcell wrote: > Maxim Dounin Wrote: > --- > > > > > Try ngx_http_conf_get_module_main_conf(). > > > > (Doing so in the create_loc_conf callback is probably pointless > > though, as main conf c

Re: Is there a wait to get at a module's main conf inside the loc conf's init?

2017-08-16 Thread ptcell
Maxim Dounin Wrote: --- > > Try ngx_http_conf_get_module_main_conf(). > > (Doing so in the create_loc_conf callback is probably pointless > though, as main conf contents can be changed later.) > > -- > Maxim Dounin > http://nginx.org/ >

Re: Is there a wait to get at a module's main conf inside the loc conf's init?

2017-08-10 Thread ptcell
Maxim Dounin Wrote: --- > Hello! > > On Wed, Aug 09, 2017 at 09:33:59PM -0400, ptcell wrote: > > > From the debugger I can see that it's probably some offset into > > cf->ctx[index].main_conf, but I don't see anyway of knowing what > that index

Re: Is there a wait to get at a module's main conf inside the loc conf's init?

2017-08-10 Thread Maxim Dounin
Hello! On Wed, Aug 09, 2017 at 09:33:59PM -0400, ptcell wrote: > From the debugger I can see that it's probably some offset into > cf->ctx[index].main_conf, but I don't see anyway of knowing what that index > is inside the loc create callback. > > Is there any other way of getting this?Getti

Is there a wait to get at a module's main conf inside the loc conf's init?

2017-08-09 Thread ptcell
>From the debugger I can see that it's probably some offset into cf->ctx[index].main_conf, but I don't see anyway of knowing what that index is inside the loc create callback. Is there any other way of getting this?Getting it at loc merge time would be acceptable too. void *ngx_http_my_modul