Nginx showing directive is duplicate

vivek goel goelvivek2011 at gmail.com
Mon May 7 06:29:06 UTC 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20120507/f84ec1c7/attachment.html>


More information about the nginx-devel mailing list