Simplest web server
$ luarocks install --server=https://luarocks.org/dev http_server
This is the simplest web server written in Lua.
The server can do everything you need at once.
Give files on request in the browser.
Execute Lua scripts, and give the result to the browser. Just create a .lua file in the program's directory and enter the path in the address bar. The file will be executed and the result will be sent to the browser.