Nginx RTMP模块状态问题
我在这里使用nginx rtmp模块:另外还有一个stats页面,当我正确添加它并转到文档中显示的url时,我只会得到一个空白页面。除了/stat之外,我是否有什么做错了,或者我是否还需要在usl中键入其他内容 以下是我的nginx conf的http部分,以了解更多信息:Nginx RTMP模块状态问题,nginx,module,rtmp,Nginx,Module,Rtmp,我在这里使用nginx rtmp模块:另外还有一个stats页面,当我正确添加它并转到文档中显示的url时,我只会得到一个空白页面。除了/stat之外,我是否有什么做错了,或者我是否还需要在usl中键入其他内容 以下是我的nginx conf的http部分,以了解更多信息: http { server { listen 80; location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.x
http {
server {
listen 80;
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
root /usr/local/ngnix/html;
}
}
}
如果有人偶然发现了这篇老文章,我也有同样的问题。
解决办法是改变:
rtmp\u stat\u样式表stat.xsl
tortmp\u stat\u样式表/stat.xsl代码>
这对我来说适用于版本nginx rtmp 1.1.4和nginx 1.4.6。
我认为添加/
的原因是html的非标准根位置。如果没有在stat.xsl前面加上/
,那么动态生成的stats页面将在http:///stat/stat.xsl
如果有人偶然发现这篇旧文章,我也有同样的问题。
解决办法是改变:
rtmp\u stat\u样式表stat.xsl
tortmp\u stat\u样式表/stat.xsl代码>
这对我来说适用于版本nginx rtmp 1.1.4和nginx 1.4.6。
我认为添加/
的原因是html的非标准根位置。如果没有在stat.xsl前面加上/
,那么动态生成的stats页面将在http:///stat/stat.xsl
如果有人偶然发现这篇旧文章,我也有同样的问题。
解决办法是改变:
rtmp\u stat\u样式表stat.xsl
tortmp\u stat\u样式表/stat.xsl代码>
这对我来说适用于版本nginx rtmp 1.1.4和nginx 1.4.6。
我认为添加/
的原因是html的非标准根位置。如果没有在stat.xsl前面加上/
,那么动态生成的stats页面将在http:///stat/stat.xsl
如果有人偶然发现这篇旧文章,我也有同样的问题。
解决办法是改变:
rtmp\u stat\u样式表stat.xsl
tortmp\u stat\u样式表/stat.xsl代码>
这对我来说适用于版本nginx rtmp 1.1.4和nginx 1.4.6。
我认为添加/
的原因是html的非标准根位置。如果没有在stat.xsl前面加上/
,那么动态生成的stats页面将在http:///stat/stat.xsl
您需要将stat.xsl复制到位置“/usr/local/ngnix/html;”“您需要将stat.xsl复制到位置“/usr/local/ngnix/html;”您需要将stat.xsl复制到位置“/usr/local/ngnix/html;”“您需要将stat.xsl复制到位置“/usr/local/ngnix/html;”