Welcome! Log In Create A New Profile

Advanced

Re: Adding 3rd party module not taking effect

Francis Daly
April 25, 2023 07:56PM
On Tue, Apr 25, 2023 at 10:20:12PM +0000, Martin Wolf wrote:

Hi there,

> I tried to add a third part module "fair balancing", but it seems to be not properly added:
>
> Error log:
> 2023/04/25 17:14:45 [emerg] 34510#0: unknown directive "fair" in /usr/local/nginx/conf/conf.d/nginx-upstream-fair.conf:2...

Yes, that says that the nginx binary that is running, does not include that module.

> # nginx -V
> nginx version: nginx/1.23.4
> built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
> configure arguments: --without-http_rewrite_module --without-http_gzip_module --add-module=/usr/local/nginx/modules/nginx_upstream_check_module-master

That nginx binary was built with those three arguments to "configure".

> steps:
> $ ./configure --with-http_ssl_module --add-module=/usr/local/nginx/modules/nginx-upstream-fair-master

That is a different set of arguments to "configure".

The nginx binary that you want to run is not the nginx binary that you
are running. Perhaps there is more than one nginx binary in your $PATH?

> make -f objs/Makefile install

> cp objs/nginx '/usr/local/nginx/sbin/nginx'

Maybe try "/usr/local/nginx/sbin/nginx -V" to see if that is the newly-built binary?

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Adding 3rd party module not taking effect

netmart April 25, 2023 06:22PM

Re: Adding 3rd party module not taking effect

Francis Daly April 25, 2023 07:56PM

Directive 3rd Party Module - log

netmart April 26, 2023 01:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
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