nginx version: nginx/1.1.18<br><br>What is wrong in following declaration <br><br>  { ngx_string("v_max_result"),<br>        NGX_HTTP_MAIN_CONF | NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1,<br>        ngx_conf_set_num_slot,<br>
        NGX_HTTP_LOC_CONF_OFFSET,<br>        offsetof(ngx_http_v_conf_t, max_result),<br>        NULL},<br><br>I am getting error <br>nginx: [emerg] "v_max_result" directive is duplicate<br><br><br>But if I declare it as string  it is working fine <br>
<br>  {     ngx_string("v_max_result"),<br>
        NGX_HTTP_MAIN_CONF | NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1,<br>
        ngx_conf_set_str_slot,<br>
        NGX_HTTP_LOC_CONF_OFFSET,<br>
        offsetof(ngx_http_v_conf_t, max_result),<br>
        NULL},<br>
<br><br><br clear="all">regards<div>Vivek Goel</div><br>