views:

2224

answers:

4

What web server (and why) should I use for Lua web development?

+2  A: 

What: Apache with mod_lua
Why : Because apache is a very good webserver

Nifle
Any luck using NGINX?
Per the mod_lua web site, it says that Security is an issue with the current deployment as an Apache module. What are they referring too?
Thay are probably referring to this http://lua-users.org/wiki/SandBoxes it deals with **running untrusted Lua code in a restricted Lua environment**
Nifle
+4  A: 

For development, it can be handy to run a small test server. A good candidate in particular for Lua web development is the Xavante server which is part of the Kepler project. Aside from some of the supporting Kepler modules , Xavante itself is written in pure Lua.

For production, the new mod_lua (which had been known as mod_wombat before the Apache team accepted it into the core set of modules) running on Apache would seem to be a well-respected choice.

RBerteig
+6  A: 

There are a few Lua-based webservers around:

  • Xavante seems to be the most popular.
  • Haserl is nice and small.
  • Nanoki is not strictly a webserver, but a nice small pure Lua wiki engine worth studying. As for the Lua wikies, there is also Sputnik, which is fully featured and very flexible, but is a bit on the slow side.
  • There is mod_lua (ex mod_wombat) if you prefer Apache. Looks like it would make it into the next Apache distribution as a core module.
  • Note that it is not so hard to write a FastCGI Lua module.
  • There is also Luv Lua MVC web-framework project (GitHub page). It is not mature yet, but may contain some interesting insights.
Alexander Gladysh
+1  A: 

there is as well the LuCI project [1]. which is the LuaConfigurationInterface, the web based mangement frontend for OpenWRT (embedded Linux).

The LuCI guys wrote also a very small webserver, called lucittpd. LuCI is an MVC as well. And in production state ;)

[1] http://luci.subsignal.org

phaidros