-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Description
I'm encountering a problem with my NGINX configuration for RTMP stats. I can successfully stream using RTMP, but I can't access the stats page at http://<IP_SERVER>/stat. I receive a 404 Not Found status, and the page displays a blank white screen.
Request Details:
Request URL: http://<IP_SERVER>/stat
Status Code: 404 Not Found
Here is my current nginx.conf configuration file:
worker_processes 1;
rtmp_auto_push on;
events {}
rtmp {
server {
listen 1935;
application live {
live on;
record off;
hls on;
hls_path /tmp/hls;
hls_fragment 3s;
}
}
}
http {
server {
listen 80;
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
# XML stylesheet to view RTMP stats
# Copy stat.xsl wherever you want
# and put the full directory path here
root /usr/local/nginx/html;
}
location /hls {
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
root /tmp;
add_header Cache-Control no-cache;
}
}
}
The stat.xsl file is located in /usr/local/nginx/html.
NGINX was successfully reloaded after configuration changes.
Could this be related to missing configurations or incorrect file paths for stat.xsl?
Metadata
Metadata
Assignees
Labels
No labels