Found the bug in my code I was not doing NGX_CONF_UNSET_UINT in create_conf function. <br><br clear="all">regards<div>Vivek Goel</div><br>
<br><br><div class="gmail_quote">On Mon, May 7, 2012 at 11:59 AM, vivek goel <span dir="ltr"><<a href="mailto:goelvivek2011@gmail.com" target="_blank">goelvivek2011@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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<span class="HOEnZb"><font color="#888888"><div>Vivek Goel</div><br>
</font></span></blockquote></div><br>