gpt4 book ai didi

sockets - 子域上的Lighttpd和Redmine给出500错误

转载 作者:行者123 更新时间:2023-12-03 11:53:17 25 4
gpt4 key购买 nike

好的,我的CentOS6 VPS和Lighttpd的工作非常吸引人。我安装了Redmine,并使其在Webrick上运行。当我杀死Webrick并尝试使用fastcgi在Lighttpd上托管Redmine时,我收到的唯一消息是500。我的PHP应用程序运行正常。

每次尝试访问Redmine时,都会在日志文件中收到以下两条消息:

(mod_fastcgi.c.2543) unexpected end-of-file (perhaps the fastcgi process died): pid: 8490 socket: unix:/tmp/redmine.socket-0

(mod_fastcgi.c.3329) response not received, request sent: 597 on socket: unix:/tmp/redmine.socket-0 for /dispatch.fcgi?, closing connection



/tmp/是可写的,lighttpd用户拥有所有redmine文件,而我的lighttpd.conf文件如下:
 $HTTP["host"] =~ "redmine.domain.com" {
server.document-root = "/path/to/redmine/public"
server.errorlog = "/path/to/redmine/log/lighttpd.log"
accesslog.filename = "/path/to/redmine/log/access.log"
magnet.attract-physical-path-to = ( "/path/to/redmine/tmp/cleanurl.lua" )
fastcgi.server = ( "dispatch.fcgi" =>
((
"socket" => "/tmp/lighttpd/redmine.socket",
"bin-path" => "/usr/bin/ruby /path/to/redmine/public/dispatch.fcgi",
"max-procs" => 1,
"idle-timeout" => 20,
"kill-signal" => 9,
"bin-environment" => (
"RAILS_ENV" => "production",
"TARGET" => "/path/to/redmine/public/dispatch.fcgi"
)
))
)
}

Lighttpd重新启动正常,那里没有错误。

当然,/path/to/redmine指向我实际的redmine文件夹。

软件版本:

CentOS 6 x64
Lighttpd 1.4.31
Ruby 1.8.7
Rails 3.2.6

最佳答案

毕竟能正常工作。我只需要在我的dispatch.fcgi文件中添加两个需求,如下所示:

require 'rubygems'
require 'fcgi'



提示:他们 转到文件的顶部,恰好在其他文件之前。

/topic已关闭。

关于sockets - 子域上的Lighttpd和Redmine给出500错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11909820/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com