We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 576a10d commit e94f2e5Copy full SHA for e94f2e5
src/ngx_http_lua_initworkerby.c
@@ -25,6 +25,7 @@ ngx_http_lua_init_worker(ngx_cycle_t *cycle)
25
void *cur, *prev;
26
ngx_uint_t i;
27
ngx_conf_t conf;
28
+ ngx_conf_file_t cf_file;
29
ngx_cycle_t *fake_cycle;
30
ngx_module_t **modules;
31
ngx_open_file_t *file, *ofile;
@@ -166,6 +167,10 @@ ngx_http_lua_init_worker(ngx_cycle_t *cycle)
166
167
conf.pool = fake_cycle->pool;
168
conf.log = cycle->log;
169
170
+ ngx_memzero(&cf_file, sizeof(cf_file));
171
+ cf_file.file.name = cycle->conf_file;
172
+ conf.conf_file = &cf_file;
173
+
174
http_ctx.loc_conf = ngx_pcalloc(conf.pool,
175
sizeof(void *) * ngx_http_max_module);
176
if (http_ctx.loc_conf == NULL) {
0 commit comments