load_module with "./configure ... --modules-path=<path> ..."

Fabiano Furtado Pessoa Coelho fusca14 at gmail.com
Thu Jul 13 18:09:03 UTC 2023


Thanks for the help, Sergey!

On Wed, Jul 12, 2023 at 9:38 PM Sergey A. Osokin wrote:
>
> Hi Fabiano,
>
> hope you're doing well.
>
> On Wed, Jul 12, 2023 at 06:40:21PM -0300, Fabiano Furtado Pessoa Coelho wrote:
> >
> > I have compiled NGINX 1.24.0 with "./configure ... --modules-path=<path> ...".
>
> The --modules-patch=<path> configure option defines a directory where
> nginx dynamic modules will be installed, [1].
>
> > Therefore, the "load_module" directive is not reading the path/config
> > specified in "--modules-path" parameter.
>
> The load_module directive, [2] utilizes a value of the --prefix configure
> option, [1] as a relative path to the modules directory.  An authentic
> package on a linux operating system creates a symlink with the source
> /usr/lib/nginx/modules directory and the /etc/nginx/modules target.
> In that case it's easy to use
>
> load_module modules/ngx_http_module_1.so;
>
> to load a dynamic module.
>
> References
> 1. https://nginx.org/en/docs/configure.html
> 2. https://nginx.org/en/docs/ngx_core_module.html#load_module
>
> Thank you.
>
> --
> Sergey A. Osokin


More information about the nginx mailing list