Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
OpenWRT上带Lighttpd的Lua_Lua_Lighttpd_Openwrt - Fatal编程技术网

OpenWRT上带Lighttpd的Lua

OpenWRT上带Lighttpd的Lua,lua,lighttpd,openwrt,Lua,Lighttpd,Openwrt,我需要能够执行Lua脚本,以便在运行在OpenWRT上的Lighttpd web服务器下实现restapi 起初,我认为这可以通过mod_magnet实现,我已经“工作”了,但我们需要支持POST请求,并且相信mod_magnet不能用于POST请求 我不喜欢使用CGI,因为每个请求的开销太大;然而,FastCGI解决方案是可以接受的 如何调用Lua脚本来处理OpenWRT上运行的Lighttpd下的GET和POST请求? lighttpd为支持FastCGI接口的外部程序提供接口。FastCG

我需要能够执行Lua脚本,以便在运行在OpenWRT上的Lighttpd web服务器下实现restapi

起初,我认为这可以通过mod_magnet实现,我已经“工作”了,但我们需要支持POST请求,并且相信mod_magnet不能用于POST请求

我不喜欢使用CGI,因为每个请求的开销太大;然而,FastCGI解决方案是可以接受的

如何调用Lua脚本来处理OpenWRT上运行的Lighttpd下的GET和POST请求?

lighttpd为支持FastCGI接口的外部程序提供接口。FastCGI接口由定义,是web应用程序和web服务器之间的独立于平台和服务器的接口

这意味着使用ApacheWebServer运行的FastCGI程序将与lighttpd无缝运行,反之亦然

-或-

根据

lighttpd为支持FastCGI接口的外部程序提供接口。FastCGI接口由定义,是web应用程序和web服务器之间的独立于平台和服务器的接口

这意味着使用ApacheWebServer运行的FastCGI程序将与lighttpd无缝运行,反之亦然

-或-

可能的重复可能的重复
server.modules += ( "mod_fastcgi" )
include "conf.d/fastcgi.conf"