操作
如何设置 Request-Tracker¶
Request Tracker 需要 WSGI 环境,因此你需要再次引用 source:doc/core.lua
setup {
module_load ( "mod_fastcgi", "mod_vhost", "mod_lua" );
lua.plugin "core.lua";
}
var.vhosts = [];
# ...
var.vhosts = var.vhosts + [
"rt.example.com" => {
if req.path =^ "/NoAuth/images" {
docroot "/opt/rt3/share/html";
} else {
core.wsgi ( "", { fastcgi "unix:/var/run/lighttpd/sockets/rt.sock"; } );
}
}
];
# ...
vhost.map var.vhosts;
使用以下 runit 脚本,将 RT 作为 FastCGI 应用程序启动
#!/bin/bash
exec 2>&1
exec /usr/bin/spawn-fcgi -s /var/run/lighttpd/sockets/rt.sock -n -u www-data -U www-data -- \
/opt/rt3/bin/mason_handler.fcgi