Skip to content

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

@bvedant19

Description

@bvedant19

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:
    "

<title>404 Not Found</title>

404 Not Found


nginx "

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions