nginx: lua modules

PGNet Dev pgnet.dev at gmail.com
Sun Aug 21 17:08:00 UTC 2022


> Want to use lua pages with nginx .
> 
> Can you please suggest what are the correct modules ?.
> also where can i find the same?.

LUA support with nginx is third-party -- via OpenResty

   https://www.nginx.com/resources/wiki/modules/lua/
   https://openresty.org/en/

OpenResty is packaged as a standalone web platform, bundling a modified version of Nginx's opensource core.

It's possible, though not trivial, to extract lua bits from OpenResty source, and build for official Nginx.

In 2019, Nginx chose to develop its own native scripting tools -- njs,

   https://github.com/nginx/njs/issues/179
   https://nginx.org/en/docs/njs/

A useful example read re: Lua 'vs' njs script support/usage in Nginx,

   https://www.rkatz.xyz/post/2021-09-13-nginx-njs-experiments/



More information about the nginx mailing list