我用的是Icecast 2.3.3。
我想使用URL流身份验证,问题是Icecast服务器没有调用身份验证服务器url,我不知道为什么。Icecast服务器运行在Azure上的Linux机器上,auth服务器是Azure Web应用程序。我尝试了不同的配置,得到了意想不到的错误。第一,用于:
<mount type="normal">
<mount-name>/local.ogg</mount-name>
<authentication type="url">
<option name="stream_auth" value="http://localhost/"/>
</authentication>
</mount>我得到了这个错误(据我理解):
[2015-05-13 18:36:52] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13 18:36:52] WARN auth_url/url_stream_auth auth to server http://localhost/ failed with Failed to connect to localhost port 80: Connection refused
[2015-05-13 18:36:52] WARN auth/stream_auth_callback Failed auth for source "/local.ogg"然后,用于:
<mount type="normal">
<mount-name>/ip.ogg</mount-name>
<authentication type="url">
<option name="stream_auth" value="http://123.45.67.89/"/>
</authentication>
</mount>同样,正如我所预期的那样,错误(这个ip是随机的):
[2015-05-13 18:37:34] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13 18:37:35] WARN auth_url/url_stream_auth auth to server http://123.45.67.89/ failed with Connection timed out after 15008 milliseconds
[2015-05-13 18:37:35] WARN auth/stream_auth_callback Failed auth for source "/ip.ogg"但是,当我想使用我的Web应用程序时
<mount type="normal">
<mount-name>/blast.ogg</mount-name>
<authentication type="url">
<option name="stream_auth" value="http://blast.azurewebsites.net/"/>
</authentication>
</mount>我没有一个错误能向我解释什么是不对的
[2015-05-13 18:38:29] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13 18:38:30] WARN auth/stream_auth_callback Failed auth for source "/blast.ogg"关于Icecast stream_auth函数我应该知道些什么吗?或者我必须用Icecast不同的方式设置VM?
如果有人有一个使用stream_auth的工作示例,这也将是值得赞赏的。
发布于 2015-05-14 22:15:33
看起来icecast安装过程没有检查libcurl的可用性。这是这个功能所需要的。检查您的config.log中是否有"libcurl“这样的消息,如果是这样的话,那么您可以运行”apt-getinstalllibcurl4-gnutils-dev“来安装libcurl。应该可以修复此错误。
https://stackoverflow.com/questions/30223129
复制相似问题