a sandboxed Lua backend for FastCGI
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

38 lines
1.4 KiB

  1. lua-fastcgi
  2. ===========
  3. lua-fastcgi is a sandboxed Lua backend for FastCGI. That is, you can write
  4. Lua scripts that serve up web pages. Options exist in lua-fastcgi.lua
  5. to configure a fixed amount of memory, cpu usage, and output bytes
  6. for each request. While sandboxed, lua-fastcgi supports a limited set
  7. of functions. If sandboxing is disabled, lua-fastcgi loads the standard
  8. libraries and users may load modules as needed.
  9. compiling
  10. ---------
  11. lua-fastcgi requires libfcgi and liblua to successfully compile. lua-fastcgi
  12. has been tested under Linux, specifically Ubuntu 10.10. Other versions of
  13. Ubuntu will likely work without any changes. Other flavors of Linux should
  14. work with little to no effort. Other Unix-like operating systems are untested
  15. and unsupported, for now.
  16. running
  17. -------
  18. lua-fastcgi reads lua-fastcgi.lua in the current working directory. If it
  19. fails to read this file, it will assume certain defaults and continue anyway.
  20. Configuration defaults are documented in the included lua-fastcgi.lua file.
  21. lua-fastcgi has been tested with nginx, but will likely work with other
  22. FastCGI compatible web servers with little effort. lua-fastcgi relies only
  23. on SCRIPT_NAME and SCRIPT_FILENAME FastCGI variables passed to it. Lua scripts
  24. can be configured inside of an nginx server directive as follows:
  25. location ~* \.lua$ {
  26. include /etc/nginx/fastcgi_params;
  27. fastcgi_pass 127.0.0.1:9222;
  28. }