From 0e576105590bcc302bfef799fee4588e2bec0387 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Tue, 13 Dec 2016 17:17:25 +0300 Subject: [PATCH] Disabled js_include at server{} and location{} levels. --- nginx/ngx_http_js_module.c | 2 +- nginx/ngx_stream_js_module.c | 2 +- 2 files changed, 2 insertions(+), 2 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, diff --git a/nginx/ngx_stream_js_module.c b/nginx/ngx_stream_js_module.c index 377996cd..d1b670fb 100644 --- a/nginx/ngx_stream_js_module.c +++ b/nginx/ngx_stream_js_module.c @@ -105,7 +105,7 @@ static ngx_int_t ngx_stream_js_init(ngx_conf_t *cf); static ngx_command_t ngx_stream_js_commands[] = { { ngx_string("js_include"), - NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_TAKE1, + NGX_STREAM_MAIN_CONF|NGX_CONF_TAKE1, ngx_stream_js_include, NGX_STREAM_SRV_CONF_OFFSET, 0, -- 2.47.3