modules and compiling nginx 1.21.3 from source

Sergey A. Osokin osa at freebsd.org.ru
Thu Oct 28 09:39:29 UTC 2021


Hi Ian,

hope you're doing well these days.

On Mon, Oct 25, 2021 at 07:09:42PM +0100, Ian Hobson wrote:
> Hi all,

[...]

Please take a look on the following line:

>    --add-module=../nchan-1.2.12

The "--add-module" configure argument adds a module as a static,
i.e. built-in functionality, into main binary file nginx.

To compile a dynamic module for NGINX, please use "--add-dynamic-module"
argument for the configure script.

Also, please do not forget to add the "--with-compat" argument
for the configure script, see below link for details.

[...]

> Can someone point me to the docs, or explain how (and when) to use.

Here's the document describes how to compile a third-party dynamic module
for NGINX and NGINX Plus,
https://www.nginx.com/blog/compiling-dynamic-modules-nginx-plus/

-- 
Sergey Osokin


More information about the nginx mailing list