Mercurial > hg > nginx-site
changeset 2534:33468af2eaf7
Moved load_module from examples of js modules to Installation.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 22 Apr 2020 16:54:18 +0100 |
parents | 617bc29bd759 |
children | 140a8a9f1dac |
files | xml/en/docs/http/ngx_http_js_module.xml xml/en/docs/njs/install.xml xml/en/docs/stream/ngx_stream_js_module.xml xml/ru/docs/http/ngx_http_js_module.xml xml/ru/docs/njs/install.xml xml/ru/docs/stream/ngx_stream_js_module.xml |
diffstat | 6 files changed, 32 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_js_module.xml +++ b/xml/en/docs/http/ngx_http_js_module.xml @@ -9,7 +9,7 @@ <module name="Module ngx_http_js_module" link="/en/docs/http/ngx_http_js_module.html" lang="en" - rev="21"> + rev="22"> <section id="summary"> @@ -34,9 +34,6 @@ Download and install instructions are av The example works since <link doc="../njs/changes.xml" id="njs0.4.0">0.4.0</link>. <example> -load_module modules/ngx_http_js_module.so; -... - http { js_import http.js;
--- a/xml/en/docs/njs/install.xml +++ b/xml/en/docs/njs/install.xml @@ -9,7 +9,7 @@ <article name="Download and install" link="/en/docs/njs/install.html" lang="en" - rev="2"> + rev="3"> <section id="install_package" name="Installing as a Linux package"> @@ -31,6 +31,19 @@ For Linux, njs modules </list> </para> +<para> +After package installation, njs dynamic modules need to be loaded with the +<link doc="../ngx_core_module.xml" id="load_module"><literal>load_module</literal></link> +directive: +<example> +load_module modules/ngx_http_js_module.so; +</example> +or +<example> +load_module modules/ngx_stream_js_module.so; +</example> +</para> + </section>
--- a/xml/en/docs/stream/ngx_stream_js_module.xml +++ b/xml/en/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ <module name="Module ngx_stream_js_module" link="/en/docs/stream/ngx_stream_js_module.html" lang="en" - rev="19"> + rev="20"> <section id="summary"> @@ -33,9 +33,6 @@ Download and install instructions are av The example works since <link doc="../njs/changes.xml" id="njs0.4.0">0.4.0</link>. <example> -load_module modules/ngx_stream_js_module.so; -... - stream { js_import stream.js;
--- a/xml/ru/docs/http/ngx_http_js_module.xml +++ b/xml/ru/docs/http/ngx_http_js_module.xml @@ -9,7 +9,7 @@ <module name="Модуль ngx_http_js_module" link="/ru/docs/http/ngx_http_js_module.html" lang="ru" - rev="21"> + rev="22"> <section id="summary"> @@ -34,9 +34,6 @@ Пример работает начиная с версии <link doc="../njs/changes.xml" id="njs0.4.0">0.4.0</link>. <example> -load_module modules/ngx_http_js_module.so; -... - http { js_import http.js;
--- a/xml/ru/docs/njs/install.xml +++ b/xml/ru/docs/njs/install.xml @@ -9,7 +9,7 @@ <article name="Загрузка и установка" link="/ru/docs/njs/install.html" lang="ru" - rev="2"> + rev="3"> <section id="install_package" name="Установка пакета Linux"> @@ -32,6 +32,19 @@ njs </list> </para> +<para> +После установки пакетов необходимо загрузить динамические модули njs при помощи +директивы +<link doc="../ngx_core_module.xml" id="load_module"><literal>load_module</literal></link>: +<example> +load_module modules/ngx_http_js_module.so; +</example> +или +<example> +load_module modules/ngx_stream_js_module.so; +</example> +</para> + </section>
--- a/xml/ru/docs/stream/ngx_stream_js_module.xml +++ b/xml/ru/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ <module name="Модуль ngx_stream_js_module" link="/ru/docs/stream/ngx_stream_js_module.html" lang="ru" - rev="19"> + rev="20"> <section id="summary"> @@ -33,9 +33,6 @@ Пример работает начиная с версии <link doc="../njs/changes.xml" id="njs0.4.0">0.4.0</link>. <example> -load_module modules/ngx_stream_js_module.so; -... - stream { js_import stream.js;