![Lighttpd mod_accesslog 不记录 fastcgi 请求](https://linux22.com/image/588579/Lighttpd%20mod_accesslog%20%E4%B8%8D%E8%AE%B0%E5%BD%95%20fastcgi%20%E8%AF%B7%E6%B1%82.png)
我最近安装了 lighttpd 来通过以下方式提供 python 脚本mod_fastcgi一切正常,只是我没有得到处理的请求mod_fastcgi登录访问日志文件(但会记录端口 80 上的请求)。我的 lighttpd 版本是 Debian 6.0 上的 1.4.28。我使用与 Ubuntu 服务器 10.04 相同的工作配置,并安装了 lighttpd 1.4.26,并且运行正常。
这是我的配置
lighttpd配置文件
server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_compress",
)
server.document-root = "/var/www/"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/home/log/lighttpd/error.log"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
"index.lighttpd.html" )
accesslog.filename = "/home/log/lighttpd/access.log"
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
server.pid-file = "/var/run/lighttpd.pid"
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
conf-启用/10-fastcgi.conf
server.modules += ( "mod_fastcgi" )
fastcgi.server = (
"/" =>
(
( "min-procs" => 1,
"check-local" => "disable",
"host" => "127.0.0.1", # local
"port" => 3000
),
)
)
任何想法 ?