Running Lua scripts using FastCGI

2020-07-18 03:40发布

问题:

I am currently trying to figure out ways to run Lua scripts using FastCGI with either lighttpd or Nginx. The only thing I was able to dig up yet was WSAPI of the Kepler project. But I wonder if there are other possibilities. Important for me is:

  • should be as lightweight as possible
  • should be stable enough to use in a production environment

Many thanks in advance.

回答1:

I would recommend taking a look at this project: http://github.com/STPeters/luafcgid

There are instructions on how to use it with nginx.