Nginx: unknown directive “rewrite_by_lua”

“unknown directive rewrite_by_lua” : How to fix this error? When you work with Nginx, a powerful feature is to take advantage of Lua scripting language directly in your configuration files. You can come across solutions that involve Lua scripting. If your setup doesn’t include Lua module, you’ll get an error message like this in nginx …