最近从debian 8更新到debian 10,这意味着Lighttpd从1.4.35升级到1.4.53,但自从升级以来,我一直在我们的数据库服务器上看到错误,这些错误指向原来的客户端不再可访问。
我们的数据库服务器运行Progress Openedge,我们使用Progress的messenger服务'Webspeed‘。
我在网上查过了,在日志中找到了有问题的错误的引用,但它与IIS4升级到更新版本有关,在更新版本中,CGI的超时时间更短。
我们使用mod_cgi和lighttpd,因为它是唯一可以工作的东西(在这个场景中不能使用FastCGI )。
在升级之前,我的lighttpd配置是100%有效的,在升级之后,配置是一样的,但是它抛出了这些错误。
Webspeed日志文件中的错误是:https://knowledgebase.progress.com/articles/Article/P152
Lighttpd配置:
server.modules = (
"mod_access",
"mod_accesslog",
"mod_alias",
"mod_compress",
"mod_expire",
"mod_redirect",
"mod_setenv",
)
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
server.document-root = "/var/www"
accesslog.filename = "/var/log/lighttpd/access.log"
# Keep-Alive stuff
# Was at 32 and 3
server.max-keep-alive-requests = 0
server.max-keep-alive-idle = 3
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
include "myconf.conf"myconf.conf只是一般的东西加上一些假定的性能调优的东西
server.modules += ( "mod_status" )
server.max-fds = 2048 #Normally 1024?
server.event-handler = "linux-sysepoll" #Normally level-triggered
server.use-noatime = "enable" #Normally disabled
$HTTP["remoteip"] == "nnn.nnn.nnn.0/24" {
status.status-url = "/server-status"
}
$HTTP["host"] == "www.example.com.au" {
server.document-root = "/var/www"
}
alias.url += ("/pse" => "/var/www/static/" )
alias.url += ("/assets" => "/var/www/assets/dist")正如我所说,自从我运行Debian 8以来,没有任何配置方面的改变。
在网上查找,我能找到的关于lighttpd配置的最佳配置是server.max-read-idle和server.max-write-idle,但文档中并没有对它们进行过多的详细介绍。
我可以对数据库服务器本身做一些微调,但这只是将重试计数从默认值10更改为0,这样如果客户端消失,Webspeed messenger在放弃之前不会费心重试10次,可能无论如何都应该这样做,但也需要一个lighttpd修复。
发布于 2020-10-06 18:41:09
https://stackoverflow.com/questions/64218739
复制相似问题