Welcome! Log In Create A New Profile

Advanced

Re: Enabling lua in Nginx 1.18.0

Francis Daly
November 23, 2021 12:06PM
On Tue, Nov 23, 2021 at 02:37:37PM +0000, BELUCHE Yannick wrote:

Hi there,

> $> nginx -t
> nginx: [emerg] unknown directive "access_by_lua" in /etc/nginx/nginx-lua-headers.conf:91

That form of message means that the matching module is not present in the running nginx.

> However it seems by typing nginx -V that the http-lua module is installed :
>
> $> nginx -V 2>1& | tr ' ' '\n'
n
> --add-dynamic-module=/build/nginx-KTLRnK/nginx-1.18.0/debian/modules/http-lua

"dynamic" means that at configure time, that module was set to be built
as a thing that can be loaded at run-time.

But until it actually is loaded, it is not present in the running nginx.

See http://nginx.org/r/load_module

> the weird thing is that I did the same thing on an older version of Ubuntu (Xenial - 16.04.2 LTS) (ie: apt install nginx nginx-extras) and the directive "access_by_lua" works out of the box on it...
>

Maybe the older version included a "load_module" directive that the newer version does not?

Good luck with it,

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

Enabling lua in Nginx 1.18.0

BELUCHE Yannick November 23, 2021 09:38AM

RE: Enabling lua in Nginx 1.18.0

Thomas Ward November 23, 2021 10:22AM

RE: Enabling lua in Nginx 1.18.0

Thomas Ward November 23, 2021 10:26AM

Re: Enabling lua in Nginx 1.18.0

Francis Daly November 23, 2021 12:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 50
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready