【问题标题】:Nginx RTMP-module Stat IssueNginx RTMP 模块统计问题
【发布时间】:2014-03-12 00:02:42
【问题描述】:

我正在使用来自这里的 nginx rtmp 模块:https://github.com/arut/nginx-rtmp-module 并且还有一个附加的统计页面,当我正确添加它并像文档中显示的那样转到 url 时,我只得到一个空白页。有什么我做错了,或者除了/stat之外我还需要在usl中输入什么吗?

这里是我的 nginx conf 的 http 部分以获取更多信息:

http {
server {
    listen 80;
    location /stat {

        rtmp_stat all;

        rtmp_stat_stylesheet stat.xsl;
    }

    location /stat.xsl {
        root /usr/local/ngnix/html;
    }
}
}

【问题讨论】:

    标签: nginx module rtmp


    【解决方案1】:

    如果有人偶然发现这篇旧帖子,我也遇到了同样的问题。
    解决方案是改变:

    rtmp_stat_stylesheet stat.xsl;rtmp_stat_stylesheet /stat.xsl;

    这对我来说适用于版本 nginx-rtmp 1.1.4、nginx 1.4.6。
    我相信添加/ 的原因是由于html 的非标准根位置。如果您没有在 stat.xsl 前面加上 /,那么动态生成的统计信息页面将在 http://<domain>/stat/stat.xsl 中查找 stats.xsl 样式表

    【讨论】:

      【解决方案2】:

      您需要将 stat.xsl 复制到位置“/usr/local/ngnix/html;”

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2021-03-06
        • 1970-01-01
        • 2019-09-05
        • 1970-01-01
        • 1970-01-01
        • 2016-03-23
        • 1970-01-01
        相关资源
        最近更新 更多