proxying rtmpt by nginx

Rajesh Dharmalingam rajesh.dharmalingam at gmail.com
Mon Jun 2 15:06:03 MSD 2008


> Default nginx configuration is anything on port 80 move it to port 8080.
> after the default location "/" setup i have added "/open/", "/idle/",
> "/close/" and "/send/".
>

is your rtmpt of red5 configured to 8080??


> On Mon, Jun 2, 2008 at 2:51 PM, Rajesh Dharmalingam <
> rajesh.dharmalingam at gmail.com> wrote:
>
>> Hi,
>>
>> You are proxying to rtmpt port using nginx. So, the rtmpt port should only
>> 8088 in red5 and not 80. In the web application where you are trying to
>> connect to red5, there you should provide 80 instead of 8088.
>>
>> Basically, the request from your web applicaiton should come to nginx and
>> nginx will do the proxy to red5's rtmpt.
>>
>> Hope this is clear.
>>
>>
>>
>> On Mon, Jun 2, 2008 at 2:32 PM, just starting <just.starting at gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> What value should I put for rtmpt port in the config file of the red5
>>> application.
>>>
>>> FYI I am trying the openmeetings application.
>>>
>>> I have nginx on 80 and default rtmpt port on 8088. Now in the config file
>>> what should I put as rtmpt port, 80 or 8088.
>>>
>>> Thanks,
>>> Rakesh.
>>>
>>>
>>> On Sun, Jun 1, 2008 at 1:47 AM, Rajesh Dharmalingam <
>>> rajesh.dharmalingam at gmail.com> wrote:
>>>
>>>> i have replied to the same thread that the configuration provided over
>>>> there is sufficient and works.
>>>>
>>>> On Sun, Jun 1, 2008 at 1:44 AM, Rajesh Dharmalingam <
>>>> rajesh.dharmalingam at gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I do not have a link to refer you. i also tried but could not find any
>>>>> documentation for the proxy. But in general rtmpt is http over rtmp. The
>>>>> rtmpt packets that are posted to red5 will have one of the 4 patterns in the
>>>>> url. i.e. open or close or idle or send.
>>>>>
>>>>> On Sun, Jun 1, 2008 at 1:13 AM, just starting <just.starting at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Thanks Rajesh for the quick reply.
>>>>>>
>>>>>> I searched the net quite a bit for the solution to my question and
>>>>>> come up with the link :
>>>>>> http://marc.info/?l=nginx&m=121180411000488&w=2
>>>>>>
>>>>>> Can you please explain this:
>>>>>>
>>>>>>    1. /open/, /close/, /send/,/idle/ are the server path used in
>>>>>>    rtmpt queries to the rtmpt server. I mean are the paths generic.
>>>>>>    2. Will these paths cover all rtmpt queries. Any pointer or link
>>>>>>    will be must helpful.
>>>>>>
>>>>>> Thanks
>>>>>> Rakesh.
>>>>>>
>>>>>>
>>>>>> On Sat, May 31, 2008 at 8:40 PM, Rajesh Dharmalingam <
>>>>>> rajesh.dharmalingam at gmail.com> wrote:
>>>>>>
>>>>>>> Yes it is possible.
>>>>>>>
>>>>>>>    location /open/ {
>>>>>>>             proxy_pass         http://127.0.0.1:8088;
>>>>>>>             proxy_redirect     off;
>>>>>>>             proxy_set_header   X-Forwarded-For
>>>>>>> $proxy_add_x_forwarded_for;
>>>>>>>
>>>>>>>             client_max_body_size       10m;
>>>>>>>             client_body_buffer_size    128k;
>>>>>>>
>>>>>>>             proxy_connect_timeout      90;
>>>>>>>             proxy_send_timeout         90;
>>>>>>>             proxy_read_timeout         90;
>>>>>>>
>>>>>>>             proxy_buffer_size          4k;
>>>>>>>             proxy_buffers              4 32k;
>>>>>>>             proxy_busy_buffers_size    64k;
>>>>>>>             proxy_temp_file_write_size 64k;
>>>>>>>
>>>>>>>             include         conf/fastcgi_params;
>>>>>>>         }
>>>>>>>
>>>>>>> Similar to this is for /close/ , /idle/ , /send/.
>>>>>>>
>>>>>>>
>>>>>>> Add this and it will work.
>>>>>>>
>>>>>>>
>>>>>>> On Sat, May 31, 2008 at 7:52 PM, just starting <
>>>>>>> just.starting at gmail.com> wrote:
>>>>>>>
>>>>>>>> hi,
>>>>>>>>
>>>>>>>> Is it possible to run red5 rtmpt via proxy of nginx?
>>>>>>>>
>>>>>>>> I know that the protocols are different, but still, is there any
>>>>>>>> workaround available?
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Rakesh.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Regards,
>>>>>>> -Rajesh
>>>>>>>
>>>>>>> "Stick to our roots and not to forget where we come from"
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Regards,
>>>>> -Rajesh
>>>>>
>>>>> "Stick to our roots and not to forget where we come from"
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> -Rajesh
>>>>
>>>> "Stick to our roots and not to forget where we come from"
>>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> -Rajesh
>>
>> "Stick to our roots and not to forget where we come from"
>>
>
>


-- 
Regards,
-Rajesh

"Stick to our roots and not to forget where we come from"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080602/894f5241/attachment.html>


More information about the nginx mailing list