Welcome! Log In Create A New Profile

Advanced

Re: Nginx showing directive is duplicate

May 07, 2012 04:08AM
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@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
>
>
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Nginx showing directive is duplicate

goelviek2011@gmail.com 7185 May 07, 2012 02:30AM

Re: Nginx showing directive is duplicate

goelviek2011@gmail.com 2453 May 07, 2012 04:08AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 225
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready