lighttpd在proxy-core下path_info为空的修复
在lighttpd1.5以后,fastcgi module被抛弃,broken-scriptfilename参数也不存在了。我们只能在proxy-core里通过rewrite来设置path_info,类似配置如下:
$HTTP["url"] =~ "\.php" {
proxy-core.backends = ( "unix:/tmp/php-fastcgi.sock" )
proxy-core.protocol = "fastcgi"
proxy-core.allow-x-sendfile = "enable"
proxy-core.allow-x-rewrite = "enable"
proxy-core.rewrite-request = (
"_pathinfo" => ( "^/index.php/?(.*)" => "/$1" )
)
}