summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-09-24 19:05:02 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-09-24 19:05:02 +0000
commitadceda60bde1882fb89a2d7e3c62b93e9337ed5e (patch)
tree96009071ea9148cfc48cccc5ea6919d4fabaca9e /src/http/modules
parent892410148fb5ed8926723306d1af7238327a2101 (diff)
downloadnginx-adceda60bde1882fb89a2d7e3c62b93e9337ed5e.tar.gz
nginx-adceda60bde1882fb89a2d7e3c62b93e9337ed5e.tar.bz2
Merge of r4828: "include" with wildcards in map and types blocks.
The "include" directive should be able to include multiple files if given a filename mask. Fixed this to work for "include" directives inside the "map" or "types" blocks. The "include" directive inside the "geo" block is still not fixed.
Diffstat (limited to 'src/http/modules')
-rw-r--r--src/http/modules/ngx_http_map_module.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/http/modules/ngx_http_map_module.c b/src/http/modules/ngx_http_map_module.c
index 54f9ec445..371737b2e 100644
--- a/src/http/modules/ngx_http_map_module.c
+++ b/src/http/modules/ngx_http_map_module.c
@@ -369,7 +369,7 @@ static char *
ngx_http_map(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
{
ngx_int_t rc, index;
- ngx_str_t *value, file, name;
+ ngx_str_t *value, name;
ngx_uint_t i, key;
ngx_http_map_conf_ctx_t *ctx;
ngx_http_variable_value_t *var, **vp;
@@ -391,15 +391,7 @@ ngx_http_map(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
}
if (ngx_strcmp(value[0].data, "include") == 0) {
- file = value[1];
-
- if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
- return NGX_CONF_ERROR;
- }
-
- ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
-
- return ngx_conf_parse(cf, &file);
+ return ngx_conf_include(cf, dummy, conf);
}
if (value[1].data[0] == '$') {