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

ptcell nginx-forum at
Thu Aug 10 01:33:59 UTC 2017

>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.

Posted at Nginx Forum:,275998,275998#msg-275998

More information about the nginx mailing list