<p dir="ltr">Rtmp it's tcp and you need use nginx as tcp proxy like haproxy</p>
<div class="gmail_quote">14 мая 2016 г. 3:04 пользователь "Zin Man" <<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>> написал:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to use nginx reverse proxy to connect to a nginx rtmp server<br>
<br>
2 servers a and b<br>
<br>
a = nginx with rtmp ( videos loacated here )<br>
<br>
b = nginx reverse proxy<br>
<br>
the reverse proxy is working good with http to stream my videos from<br>
server "a"<br>
<br>
but i am not able to use it after installing rtmp on server "a"<br>
<br>
<br>
this is my old server b config<br>
<br>
server {<br>
listen 80;<br>
server_name server_a_name;<br>
location / {<br>
proxy_pass <a href="http://ip" rel="noreferrer" target="_blank">http://ip</a> of server a/;<br>
<br>
proxy_set_header Host $host;<br>
proxy_set_header X-Real-IP $remote_addr;<br>
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
access_log off;<br>
log_not_found off;<br>
= }<br>
}<br>
<br>
so after installing nginx rtmp on server a i have tried this config on<br>
server b<br>
<br>
rtmp {<br>
server {<br>
listen 1935;<br>
application vod {<br>
<br>
pull rtmp://ip of server a:1935;<br>
}<br>
}<br>
}<br>
also tried pull rtmp://ip of server a:1935/vod/;<br>
<br>
and this is the config on server a<br>
<br>
rtmp<br>
{<br>
server<br>
{<br>
listen 1935;<br>
notify_method get;<br>
on_play <a href="http://127.0.0.1/vod_handler" rel="noreferrer" target="_blank">http://127.0.0.1/vod_handler</a>;<br>
application vod<br>
{<br>
play /home/files/public_html/cgi-bin/uploads/;<br>
}<br>
}<br>
}<br>
thanks<br>
<br>
--<br>
Posted via <a href="http://www.ruby-forum.com/" rel="noreferrer" target="_blank">http://www.ruby-forum.com/</a>.<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>