I am using the nginx rtmp-module from here: https://github.com/arut/nginx-rtmp-module and there is an addition to have a stats page, well when I add it properly and go to the url like they show in the documentation, I just get a blank page. Is there anything that I am doing wrong or is there something else that I need to type into the usl besides /stat?
Here is my http portion of my nginx conf for more information:
http {
server {
listen 80;
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
root /usr/local/ngnix/html;
}
}
}
If anyone happens to stumble upon this old post, I had the same problem.
The solution was to change:
rtmp_stat_stylesheet stat.xsl;
to rtmp_stat_stylesheet /stat.xsl;
This worked for me with version nginx-rtmp 1.1.4, nginx 1.4.6.
I believe reasoning for the added /
is due to the non-standard root location for the html. If you do not prepend the stat.xsl with the /
then the dynamically generated stats page will look for the stats.xsl stylesheet in http://<domain>/stat/stat.xsl
您将需要将stat.xsl复制到位置“ / usr / local / ngnix / html;”。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.