Module ngx_http_js_module

The ngx_http_js_module module is used to implement location and variable handlers in nginScript — a subset of the JavaScript language.

This module is not built by default, it should be compiled with the nginScript module using the --add_module configuration parameter:

1
./configure --add-module=<code><i>path-to-njs</i></code>/nginx

The repository with the nginScript module can be cloned with the following command (requires Mercurial client):

This module can also be built as dynamic:

1
./configure --add-dynamic_module=<code><i>path-to-njs</i></code>/nginx
js_set
  • References/Server/Nginx/Modules reference/ngx_http_js_module

Syntax: js_set $variable function; Default: —

2025-01-10 15:47:30
js_include
  • References/Server/Nginx/Modules reference/ngx_http_js_module

Syntax: js_include file; Default: — Context:

2025-01-10 15:47:30
js_content
  • References/Server/Nginx/Modules reference/ngx_http_js_module

Syntax: js_content function; Default: — Context:

2025-01-10 15:47:30