> My problem is I don't know where to insert the code so that it works :
> - I initialize shared memory in postconfiguration, but I can't load MySQl data here because the shm is not ready yet,
> - I tried to load MySQL data in init module function but then I can't access my module configuration directives (ngx_get_conf returns NULL).
OK, I've found the solution : in the init module function, I have to call ngx_http_cycle_get_module_main_conf(cycle, my_module) to retrieve the configuration directives for my module.
Regards,
Thierry
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel