[英]lighttpd daemon failed to start after adding python support to read from cgi-bin
getting python to run from cgi-bin causes lighttpd daemon failed to start让 python 从 cgi-bin 运行导致 lighttpd 守护进程无法启动
$HTTP["url"] =~ "^/cgi-bin/" {
alias.url += ( "/cgi-bin/" => "/var/www/cgi-bin" )
cgi.assign = (".py" => "/usr/bin/python")
}
Am I doing something wrong I also have below added in the beginning of /etc/lighttpd/lighttpd.conf
我做错了什么我还在
/etc/lighttpd/lighttpd.conf
的开头添加了以下内容
server.modules = (
"mod_indexfile",
"mod_setenv",
"mod_access",
"mod_alias",
"mod_redirect",
"mod_cgi"
)
Look in the lighttpd error log and review the trace for what you broke.查看 lighttpd 错误日志并查看跟踪以了解您破坏的内容。
Alternatively, run lighttpd pre-flight tests on your config: lighttpd -tt -f /etc/lighttpd/lighttpd.conf
或者,在您的配置上运行 lighttpd 飞行前测试:
lighttpd -tt -f /etc/lighttpd/lighttpd.conf
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.