Welcome! Log In Create A New Profile

Advanced

nginx reverse proxy with rtmp

Zin Man
May 13, 2016 08:06PM
I am trying to use nginx reverse proxy to connect to a nginx rtmp server

2 servers a and b

a = nginx with rtmp ( videos loacated here )

b = nginx reverse proxy

the reverse proxy is working good with http to stream my videos from
server "a"

but i am not able to use it after installing rtmp on server "a"


this is my old server b config

server {
listen 80;
server_name server_a_name;
location / {
proxy_pass http://ip of server a/;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
access_log off;
log_not_found off;
= }
}

so after installing nginx rtmp on server a i have tried this config on
server b

rtmp {
server {
listen 1935;
application vod {

pull rtmp://ip of server a:1935;
}
}
}
also tried pull rtmp://ip of server a:1935/vod/;

and this is the config on server a

rtmp
{
server
{
listen 1935;
notify_method get;
on_play http://127.0.0.1/vod_handler;
application vod
{
play /home/files/public_html/cgi-bin/uploads/;
}
}
}
thanks

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx reverse proxy with rtmp

Zin Man May 13, 2016 08:06PM

Re: nginx reverse proxy with rtmp

Yuriy Medvedev May 14, 2016 04:40AM

Re: nginx reverse proxy with rtmp

Zin Man May 14, 2016 11:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready