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 at daoine.org
Hello,
I was wondering, whether there is a possibility to verify [next to nginx.conf] in NGNX logs what Directive is used; for example to verify what load balance algorithm is used in http upstream flow.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20230426/f887a4d3/attachment.htm>