Use port 80 for both Apache and Red5

View: New views
8 Messages — Rating Filter:   Alert me  

Use port 80 for both Apache and Red5

by Andrew Sinning :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it possible to use an iptable or some other means to so that messages
using protocol "rtmph" on port 80 will go to Red5 and "http: messages
will go to Apache?

I guess my other option is to get a second ip address.

Thanks.

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: Use port 80 for both Apache and Red5

by Sebastian Wagner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

sebastian

2009/10/28 Andrew Sinning <andrew@...>
Is it possible to use an iptable or some other means to so that messages using protocol "rtmph" on port 80 will go to Red5 and "http: messages will go to Apache?

I guess my other option is to get a second ip address.

Thanks.

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org



--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner@...

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: Use port 80 for both Apache and Red5

by Andrew Sinning :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Sebastian,

This is an awful lot for me to take into my pea-sized brain.  Can you please give me a hint about how I might use this information?

Sebastian Wagner wrote:
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

sebastian

2009/10/28 Andrew Sinning <andrew@...>
Is it possible to use an iptable or some other means to so that messages using protocol "rtmph" on port 80 will go to Red5 and "http: messages will go to Apache?

I guess my other option is to get a second ip address.

Thanks.

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org



--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner@...

_______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: Use port 80 for both Apache and Red5

by Richard Alam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Follow this thread
http://osflash.org/pipermail/red5_osflash.org/2009-May/032371.html

Hope this helps.

Richard

On Wed, Oct 28, 2009 at 10:15 AM, Andrew Sinning
<andrew@...> wrote:

> Hi Sebastian,
>
> This is an awful lot for me to take into my pea-sized brain.  Can you please
> give me a hint about how I might use this information?
>
> Sebastian Wagner wrote:
>
> http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
>
> sebastian
>
> 2009/10/28 Andrew Sinning <andrew@...>
>>
>> Is it possible to use an iptable or some other means to so that messages
>> using protocol "rtmph" on port 80 will go to Red5 and "http: messages will
>> go to Apache?
>>
>> I guess my other option is to get a second ip address.
>>
>> Thanks.
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5@...
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> --
> Sebastian Wagner
> http://www.webbase-design.de
> http://openmeetings.googlecode.com
> http://www.laszlo-forum.de
> seba.wagner@...
>
> ________________________________
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>



--
---
BigBlueButton
http://www.bigbluebutton.org
http://code.google.com/p/bigbluebutton

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: Use port 80 for both Apache and Red5

by Andrew Sinning :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What I've gathered from this thread is that you can configure Apache with

    RewriteEngine On
    RewriteRule ^/((open|send|idle|close|fcs)/.*)$ http://my.domain.com:8088/$1[P]

to get it to forward requests (on port 80, I assume) to port 8088, which Red5 is listening on.

But what is the part that looks like this:

    ^/((open|send|idle|close|fcs)/.*)$

?  Will all the NetConnection urls (and only those urls) match this rule?

Thanks!

Richard Alam wrote:
Follow this thread
http://osflash.org/pipermail/red5_osflash.org/2009-May/032371.html

Hope this helps.

Richard

On Wed, Oct 28, 2009 at 10:15 AM, Andrew Sinning
andrew@... wrote:
  
Hi Sebastian,

This is an awful lot for me to take into my pea-sized brain.  Can you please
give me a hint about how I might use this information?

Sebastian Wagner wrote:

http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

sebastian

2009/10/28 Andrew Sinning andrew@...
    
Is it possible to use an iptable or some other means to so that messages
using protocol "rtmph" on port 80 will go to Red5 and "http: messages will
go to Apache?

I guess my other option is to get a second ip address.

Thanks.

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
      

--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner@...

________________________________
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


    



  


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: Use port 80 for both Apache and Red5

by Mondain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In this particular case Red5's RTMPT server would be listening on 8088; see the rtmpt.server bean in red5-core.xml. 

On Wed, Oct 28, 2009 at 8:22 AM, Andrew Sinning <andrew@...> wrote:
What I've gathered from this thread is that you can configure Apache with

    RewriteEngine On
    RewriteRule ^/((open|send|idle|close|fcs)/.*)$ http://my.domain.com:8088/$1[P]

to get it to forward requests (on port 80, I assume) to port 8088, which Red5 is listening on.

But what is the part that looks like this:

    ^/((open|send|idle|close|fcs)/.*)$

?  Will all the NetConnection urls (and only those urls) match this rule?

Thanks!


Richard Alam wrote:
Follow this thread
http://osflash.org/pipermail/red5_osflash.org/2009-May/032371.html

Hope this helps.

Richard

On Wed, Oct 28, 2009 at 10:15 AM, Andrew Sinning
andrew@... wrote:
  
Hi Sebastian,

This is an awful lot for me to take into my pea-sized brain.  Can you please
give me a hint about how I might use this information?

Sebastian Wagner wrote:

http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

sebastian

2009/10/28 Andrew Sinning andrew@...
    
Is it possible to use an iptable or some other means to so that messages
using protocol "rtmph" on port 80 will go to Red5 and "http: messages will
go to Apache?

I guess my other option is to get a second ip address.

Thanks.

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
      
--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner@...

________________________________
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


    
  


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: Use port 80 for both Apache and Red5

by Richard Alam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

see http://trac.red5.org/wiki/Codecs/RTMPTSpecification

On Wed, Oct 28, 2009 at 11:22 AM, Andrew Sinning
<andrew@...> wrote:

> What I've gathered from this thread is that you can configure Apache with
>
>     RewriteEngine On
>     RewriteRule ^/((open|send|idle|close|fcs)/.*)$
> http://my.domain.com:8088/$1[P]
>
> to get it to forward requests (on port 80, I assume) to port 8088, which
> Red5 is listening on.
>
> But what is the part that looks like this:
>
>     ^/((open|send|idle|close|fcs)/.*)$
>
> ?  Will all the NetConnection urls (and only those urls) match this rule?
>
> Thanks!
>
> Richard Alam wrote:
>
> Follow this thread
> http://osflash.org/pipermail/red5_osflash.org/2009-May/032371.html
>
> Hope this helps.
>
> Richard
>
> On Wed, Oct 28, 2009 at 10:15 AM, Andrew Sinning
> <andrew@...> wrote:
>
>
> Hi Sebastian,
>
> This is an awful lot for me to take into my pea-sized brain.  Can you please
> give me a hint about how I might use this information?
>
> Sebastian Wagner wrote:
>
> http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
>
> sebastian
>
> 2009/10/28 Andrew Sinning <andrew@...>
>
>
> Is it possible to use an iptable or some other means to so that messages
> using protocol "rtmph" on port 80 will go to Red5 and "http: messages will
> go to Apache?
>
> I guess my other option is to get a second ip address.
>
> Thanks.
>
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> --
> Sebastian Wagner
> http://www.webbase-design.de
> http://openmeetings.googlecode.com
> http://www.laszlo-forum.de
> seba.wagner@...
>
> ________________________________
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>



--
---
BigBlueButton
http://www.bigbluebutton.org
http://code.google.com/p/bigbluebutton

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: Use port 80 for both Apache and Red5

by Zayzon, Gergely :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Don't forget to add the [L] modifier to the RewriteRule (so instead of
[P] use [P,L]), otherwise other rewriting might take place - which is
certainly not desired.

Also, to make it bulletproof use RewriteCond to check either the
HTTP_USER_AGENT or the HTTP_ACCEPT environmental variables, so only
RTMPT request will be proxied - but you have to check out first if they
really fit the purpose. See
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond

Last but not least, you have to load the mod_proxy and the
proxy_http_module modules into Apache to make the mentioned rewriting
work, and make sure the "normal" proxy behavior is disabled by either
using ProxyRequests Off (which is the default actually) or embedding the
following in your main Apache configuration
<Proxy *>
   Order Deny,Allow
   Deny from all
   Allow from 127.0.0.1
</Proxy>


Regards,
Gergely Zayzon


Richard Alam wrote:

> see http://trac.red5.org/wiki/Codecs/RTMPTSpecification
>
> On Wed, Oct 28, 2009 at 11:22 AM, Andrew Sinning
> <andrew@...> wrote:
>> What I've gathered from this thread is that you can configure Apache with
>>
>>     RewriteEngine On
>>     RewriteRule ^/((open|send|idle|close|fcs)/.*)$
>> http://my.domain.com:8088/$1[P]
>>
>> to get it to forward requests (on port 80, I assume) to port 8088, which
>> Red5 is listening on.
>>
>> But what is the part that looks like this:
>>
>>     ^/((open|send|idle|close|fcs)/.*)$
>>
>> ?  Will all the NetConnection urls (and only those urls) match this rule?
>>
>> Thanks!
>>
>> Richard Alam wrote:
>>
>> Follow this thread
>> http://osflash.org/pipermail/red5_osflash.org/2009-May/032371.html
>>
>> Hope this helps.
>>
>> Richard
>>
>> On Wed, Oct 28, 2009 at 10:15 AM, Andrew Sinning
>> <andrew@...> wrote:
>>
>>
>> Hi Sebastian,
>>
>> This is an awful lot for me to take into my pea-sized brain.  Can you please
>> give me a hint about how I might use this information?
>>
>> Sebastian Wagner wrote:
>>
>> http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
>>
>> sebastian
>>
>> 2009/10/28 Andrew Sinning <andrew@...>
>>
>>
>> Is it possible to use an iptable or some other means to so that messages
>> using protocol "rtmph" on port 80 will go to Red5 and "http: messages will
>> go to Apache?
>>
>> I guess my other option is to get a second ip address.
>>
>> Thanks.
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5@...
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>> --
>> Sebastian Wagner
>> http://www.webbase-design.de
>> http://openmeetings.googlecode.com
>> http://www.laszlo-forum.de
>> seba.wagner@...
>>
>> ________________________________
>> _______________________________________________
>> Red5 mailing list
>> Red5@...
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5@...
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5@...
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>
>
>

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org