comparison 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
comparison
equal deleted inserted replaced
6192:7863b167dbf9 6193:78c06e5e1d76
126 ngx_http_conf_ctx_t *ctx; 126 ngx_http_conf_ctx_t *ctx;
127 ngx_http_core_loc_conf_t *clcf; 127 ngx_http_core_loc_conf_t *clcf;
128 ngx_http_core_srv_conf_t **cscfp; 128 ngx_http_core_srv_conf_t **cscfp;
129 ngx_http_core_main_conf_t *cmcf; 129 ngx_http_core_main_conf_t *cmcf;
130 130
131 if (*(ngx_http_conf_ctx_t **) conf) {
132 return "is duplicate";
133 }
134
131 /* the main http context */ 135 /* the main http context */
132 136
133 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_http_conf_ctx_t)); 137 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_http_conf_ctx_t));
134 if (ctx == NULL) { 138 if (ctx == NULL) {
135 return NGX_CONF_ERROR; 139 return NGX_CONF_ERROR;