nginx version: nginx/1.1.18
What is wrong in following declaration
{ ngx_string("v_max_result"),
NGX_HTTP_MAIN_CONF | NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF |
NGX_CONF_TAKE1,
ngx_conf_set_num_slot,
NGX_HTTP_LOC_CONF_OFFSET,
offsetof(ngx_http_v_conf_t, max_result),
NULL},
I am getting error
nginx: [emerg] "v_max_result" directive is duplicate
But if I declare it as string it is working fine
{ ngx_string("v_max_result"),
NGX_HTTP_MAIN_CONF | NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF |
NGX_CONF_TAKE1,
ngx_conf_set_str_slot,
NGX_HTTP_LOC_CONF_OFFSET,
offsetof(ngx_http_v_conf_t, max_result),
NULL},
regards
Vivek Goel
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel