Welcome! Log In Create A New Profile

Advanced

problem with my module configure reading

August 10, 2009 06:42AM
i have created my module configuration with "create location configure" handler.
then i want to have something to initiate wiht callback "postconfiguration".

my function likes this:
///////////////////////////////////////////
typedef struct{
ngx_int_t var;
}
gdrive_test_module_loc_conf_t;
ngx_int_t gdrive_gfs_proxy_init(ngx_conf_t* cf)
{
gdrive_test_module_loc_conf_t *ggplc=ngx_http_conf_get_module_loc_conf(cf, gdrive_test_module_loc_conf_t);
ngx_log_debug0(NGX_LOG_DEBUG, cf->log, 0, "%d" ,ggplc->var);

return NGX_OK;
}
////////////////////////////////////////////////////

the problem is, i don't know why, i get my configure gglpc with ngx_http_conf_get_module_loc_conf, but the var value i have set in nginx.conf can't be readed, it is still UNSET value.
Subject Author Posted

problem with my module configure reading

supergui August 10, 2009 06:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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