Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bvedant19 opened this issue Dec 22, 2024 · 1 comment
Open

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

bvedant19 opened this issue Dec 22, 2024 · 1 comment

Comments

@bvedant19
Copy link

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?

@moerradi
Copy link

moerradi commented Jan 5, 2025

can you share with me your full nginx configuration there seems to be some misconfiguration that results in nginx attempting to fetch "control" from the default html folder of nginx usr/local/nginx/html instead of the location you specified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants