使用lighttpd与fastcgi授权者导致问题的video(mod_h264_streaming)

所以我的目标是提供stream媒体video,但只有在authentication后。 由于身份validation可以使用许多方法之一,我正在写一个fastcgi授权人来处理它们。 每个部分(stream媒体,fastcgi授权人)独立工作,但一起事情崩溃。

我在这里设置了一个演示。 我有三个部分:每个部分都有一个图像和一个video。 第一部分是显示公共内容,第二部分是显示私人内容(必须先authentication),第三部分是使用JS包装来pipe理私人内容的显示。 要获得授权,请点击“获取访问权限”。 然后返回到索引页面。

会发生什么是私人video永不加载(虽然私人图像加载好)。 此外,没有错误或访问日志行表示正在加载或甚至请求私人video。

我的lighttpdconfiguration的相关部分

server.modules += ("mod_h264_streaming") server.modules += ("mod_fastcgi") h264-streaming.extensions = ( ".mp4", ".f4v" ) h264-streaming.buffer-seconds = 10 fastcgi.debug = 1 fastcgi.server = ( "/fake_cookie" => ( "fake_cookie" => ( "socket" => "/Users/geoff/manual/lighttpd/build/lighttpd.fake_cookie.fcgi.sock", "bin-path" => "/Users/geoff/manual/lighttpd/build/fcgi/fake_cookie.pl", "check-local" => "disable" )), "/kill_cookie" => ( "kill_cookie" => ( "socket" => "/Users/geoff/manual/lighttpd/build/lighttpd.kill_cookie.fcgi.sock", "bin-path" => "/Users/geoff/manual/lighttpd/build/fcgi/kill_cookie.pl", "check-local" => "disable" )), "/authenticate" => ( "authenticate" => ( "socket" => "/Users/geoff/manual/lighttpd/build/lighttpd.authenticate.fcgi.sock", "bin-path" => "/Users/geoff/manual/lighttpd/build/fcgi/authenticate.pl", "check-local" => "disable" )), "/authorized/" => ( "gatekeeper" => ( "socket" => "/Users/geoff/manual/lighttpd/build/lighttpd.gatekeeper.fcgi.sock", "mode" => "authorizer", "bin-path" => "/Users/geoff/manual/lighttpd/build/fcgi/gatekeeper.pl", "docroot" => "/Users/geoff/manual/lighttpd/build/host_authorized/", "check-local" => "disable" )) ) 

请注意,gatekeeper.pl是fastcgi授权者。