Nginx showing directive is duplicate
vivek goel
goelvivek2011 at gmail.com
Mon May 7 08:07:00 UTC 2012
Found the bug in my code I was not doing NGX_CONF_UNSET_UINT in create_conf
function.
regards
Vivek Goel
On Mon, May 7, 2012 at 11:59 AM, vivek goel <goelvivek2011 at gmail.com> wrote:
> 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/226b7565/attachment.html>
More information about the nginx-devel
mailing list