* conf->upstream.schema = { 0, NULL };
* conf->upstream.uri = { 0, NULL };
* conf->upstream.location = NULL;
- *
- * conf->index = 0;
*/
conf->upstream.connect_timeout = NGX_CONF_UNSET_MSEC;
conf->upstream.pass_request_headers = 0;
conf->upstream.pass_request_body = 0;
+ conf->index = NGX_CONF_UNSET;
+
return conf;
}
|NGX_HTTP_UPSTREAM_FT_OFF;
}
+ if (conf->upstream.upstream == NULL) {
+ conf->upstream.upstream = prev->upstream.upstream;
+ conf->upstream.schema = prev->upstream.schema;
+ }
+
+ if (conf->index == NGX_CONF_UNSET) {
+ conf->index = prev->index;
+ }
+
return NGX_CONF_OK;
}