Welcome! Log In Create A New Profile

Advanced

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

August 09, 2017 09:33PM
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_module_create_conf(ngx_conf_t *cf) {

}

Thank you.
Subject Author Posted

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

ptcell August 09, 2017 09:33PM

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

Maxim Dounin August 10, 2017 06:46AM

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

ptcell August 10, 2017 02:46PM

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

ptcell August 17, 2017 12:53AM

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

Maxim Dounin August 17, 2017 08:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 264
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