nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

404 Not Found on /control endpoint while using nginx-rtmp-module

Open bvedant19 opened this issue 10 months ago • 1 comments

I am using the nginx-rtmp-module with the following configuration: `http { server { listen 8080; server_name localhost;

    location /control {
        rtmp_control all;
    }

    location /stat {
        rtmp_stat all;
        rtmp_stat_stylesheet /stat.xsl;
    }

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

}`

  • /stat works fine, but when I try to access /control, I get a 404 Not Found error.

  • The error log shows the following message: 2024/12/22 20:24:38 [error] 10#10: *12 open() "/usr/local/nginx/html/control" failed (2: No such file or directory), client: 10.244.0.1, server: localhost, request: "GET /control HTTP/1.1", host: "192.168.49.2:31001"

  • When I try using curl http://:31001/control, I get the following response: "

404 Not Found

404 Not Found


nginx
"

What could be the possible reasons for this issue? How can I fix it?

bvedant19 avatar Dec 22 '24 21:12 bvedant19