summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules')
-rw-r--r--src/http/modules/ngx_http_geo_module.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c
index 619a5fde8..5018e1abb 100644
--- a/src/http/modules/ngx_http_geo_module.c
+++ b/src/http/modules/ngx_http_geo_module.c
@@ -645,7 +645,12 @@ ngx_http_geo(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
if (ngx_strcmp(value[0].data, "include") == 0) {
- rv = ngx_http_geo_include(cf, ctx, &value[1]);
+ if (strpbrk((char *) value[1].data, "*?[") == NULL) {
+ rv = ngx_http_geo_include(cf, ctx, &value[1]);
+
+ } else {
+ rv = ngx_conf_include(cf, dummy, conf);
+ }
goto done;