You are not logged in.

#1 2019-06-24 19:42:26

Ruta
Member
Registered: 2019-06-24
Posts: 1

Nginx + Lua support

After installing everything -- nginx, Lua, LuaJit, openresty, etc -- and starting nginx, I get this:

unknown directive "content_by_lua_file" in /etc/nginx/sites-enabled/my_site.com

What did I forget? Should have been enabled Lua support somehow when I was installing nginx? How?


My script will run on LuaJit

Offline

#2 2019-06-24 20:38:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Nginx + Lua support

Not an Installatioin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-04-12 15:47:02

zavndw
Member
Registered: 2014-03-21
Posts: 5

Re: Nginx + Lua support

Ruta wrote:

After installing everything -- nginx, Lua, LuaJit, openresty, etc -- and starting nginx, I get this:

unknown directive "content_by_lua_file" in /etc/nginx/sites-enabled/my_site.com

What did I forget? Should have been enabled Lua support somehow when I was installing nginx? How?


My script will run on LuaJit

You have solved this problem?

Offline

#4 2021-04-12 15:57:05

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Nginx + Lua support

As far as I know (never used it), you do not need anything except openresty. It includes everything it needs and you should start it with its own systemd service file. Do not install/start nginx.

Edit: Well, you can probably compile the resty lua module for the standard nginx package, but there is no PKGBUILD in the repositories or the AUR as far as I can see.

Last edited by progandy (2021-04-12 16:00:58)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2021-04-12 16:17:15

zavndw
Member
Registered: 2014-03-21
Posts: 5

Re: Nginx + Lua support

progandy wrote:

As far as I know (never used it), you do not need anything except openresty. It includes everything it needs and you should start it with its own systemd service file. Do not install/start nginx.

Edit: Well, you can probably compile the resty lua module for the standard nginx package, but there is no PKGBUILD in the repositories or the AUR as far as I can see.

I also found openresty. Through it is the easiest way

Offline

Board footer

Powered by FluxBB