Mercurial > hg > nginx-site
diff xml/en/docs/njs/install.xml @ 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 | 2aad23d07d96 |
children |
line wrap: on
line diff
--- 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>