Welcome! Log In Create A New Profile

Advanced

Nginx showing directive is duplicate

May 07, 2012 02:30AM
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 7179 May 07, 2012 02:30AM

Re: Nginx showing directive is duplicate

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



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

Online Users

Guests: 229
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