Fabio Martins wrote on 21.05.2026 22:58:
Just installed nginx-lua + onion2web via luarocks 5.1
nginx.conf complains about
content_by_lua directive inside the server { tag:
nginx: [emerg] unknown directive "content_by_lua" nginx-lua-1.28.2
(installed)
Does anyone has example about running lua under nginx on openbsd?
Including nginx.conf?
(not using it myself) The source of the Nginx module seems a good place
for what directives are valid in what context(s):
https://github.com/openresty/lua-nginx-module#content_by_lua
"syntax: content_by_lua <lua-script-str>
context: location, location if
phase: content
NOTE Use of this directive is discouraged following the v0.9.17 release.
Use the content_by_lua_block directive instead."
Under
https://github.com/openresty/lua-nginx-module#special-escaping-sequences
are some examples listed.
Thanks.