Mercurial > hg > nginx
diff src/http/ngx_http.c @ 6193:78c06e5e1d76
Disabled duplicate http, mail, and stream blocks.
Such configurations have very limited use, introduce various problems and
are not officially supported.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 16 Jun 2015 23:28:38 +0300 |
parents | 4f6efabcb09b |
children | 257b51c37c5a |
line wrap: on
line diff
--- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -128,6 +128,10 @@ ngx_http_block(ngx_conf_t *cf, ngx_comma ngx_http_core_srv_conf_t **cscfp; ngx_http_core_main_conf_t *cmcf; + if (*(ngx_http_conf_ctx_t **) conf) { + return "is duplicate"; + } + /* the main http context */ ctx = ngx_pcalloc(cf->pool, sizeof(ngx_http_conf_ctx_t));