Welcome! Log In Create A New Profile

Advanced

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

Sergey A. Osokin
July 12, 2023 08:40PM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

Fabiano Furtado Pessoa Coelho July 12, 2023 05:42PM

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

Maxim Dounin July 12, 2023 08:38PM

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

Fabiano Furtado Pessoa Coelho July 13, 2023 02:10PM

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

Maxim Dounin July 14, 2023 11:34AM

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

Fabiano Furtado Pessoa Coelho July 14, 2023 11:38AM

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

Sergey A. Osokin July 12, 2023 08:40PM

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

Fabiano Furtado Pessoa Coelho July 13, 2023 02:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready