我正在尝试配置 Lighttpd 以使用 FastCGI 运行 Redmine。我已将以下代码添加到我的标准中lighttpd.conf
:
$HTTP["host"] =~ "^foo.bar.com$" {
server.document-root = "/usr/share/redmine/public/"
index-file.names += ( "dispatch.fcgi" ) #dispatch.fcgi if rails specified
server.error-handler-404 = "/dispatch.fcgi" #too
fastcgi.server = (
".fcgi" => (
"localhost" => (
"socket" => "/var/run/lighttpd/rails-fastcgi.sock",
"bin-path" => "/usr/share/redmine/public/dispatch.fcgi"
)
)
)
}
当我尝试启动 lighttpd 服务器时,我在错误日志中得到以下信息:
May 11 10:24:05 ohio lighttpd[5527]: (log.c.166) server started
May 11 10:24:05 ohio lighttpd[5527]: (mod_fastcgi.c.977) bind failed for: unix:/var/run/lighttpd/rails-fastcgi.sock-0 No such file or directory
May 11 10:24:05 ohio lighttpd[5527]: (mod_fastcgi.c.1397) [ERROR]: spawning fcgi failed.
May 11 10:24:05 ohio lighttpd[5527]: (server.c.945) Configuration of plugins failed. Going down.
谁能帮我解释为什么绑定总是失败?