aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_http_js_module.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2016-12-13 17:17:25 +0300
committerRoman Arutyunyan <arut@nginx.com>2016-12-13 17:17:25 +0300
commit0e576105590bcc302bfef799fee4588e2bec0387 (patch)
tree2fc30b20cb7ffcbe1c59705d77bd15142aee666c /nginx/ngx_http_js_module.c
parent7beae7dc6a8efe6706e1b3f5df752fb07f118e98 (diff)
downloadnjs-0e576105590bcc302bfef799fee4588e2bec0387.tar.gz
njs-0e576105590bcc302bfef799fee4588e2bec0387.zip
Disabled js_include at server{} and location{} levels.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r--nginx/ngx_http_js_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c
index 83068160..6cf04823 100644
--- a/nginx/ngx_http_js_module.c
+++ b/nginx/ngx_http_js_module.c
@@ -130,7 +130,7 @@ static char *ngx_http_js_merge_loc_conf(ngx_conf_t *cf, void *parent,
static ngx_command_t ngx_http_js_commands[] = {
{ ngx_string("js_include"),
- NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
+ NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1,
ngx_http_js_include,
NGX_HTTP_LOC_CONF_OFFSET,
0,