Skip to main content
August 9, 2010
Question

running a cloud of streaming servers

  • August 9, 2010
  • 1 reply
  • 634 views



I have multiple video streaming servers running on my LAN.


For different subdomains.
i.e.
site1.mydomain.com
site2.mydomain.com
site3.mydomain.com
site4.mydomain.com

All the above websites have different content and are different websites.

The front end to the world is apache2 on a server which has public IP.



To be able to reach the streaming server I
embed a javascript in HTML pages
as follows
Code:

<embed .....
var="rtmp://site1.my_domain.com"

>


the problem is the website are many

site1.mydomain.com
site2.mydomain.com
site3.mydomain.com
site4.mydomain.com

each on a separate server.

Each of these four have their own streaming servers the front end to
each of these four is apache running on gateway


If I run rtmp on each of the subdomains  at a
different port

how will I make sure
a request such as

rtmp://site1.mydomain.com
rtmp://site2.mydomain.com

goes to their respective servers.
from the front end server from gateway.

What do I need to handle in this case ?


For handling HTTP requests in this case I use Apache Reverse Proxy
but for rtmp requests I am not clear as which direction to proceed.

What I want is

if I embed a code in javascript as

rtmp://site1.mydomain.com

then request for

rtmp://site1.mydomain.com

rtmp://site2.mydomain.com

goes to the server on LAN which

has

site1.mydomain.com

site2.mydomain.com

respectively.

The gateway is Linux Server.

Which redirects to these websites via Reverse Proxy at apache what more I need to put in my vhosts at

gateway.

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    August 17, 2010

    I don't know whether i got your query right but let me try to answer it.

    Say now you have 4 Streaming Servers on 4 different machines. So basically all of them will have unique hostname which would be accessible only from your lan and not accessible to outside world.

    So lets say their hostnames are FMS1.mydomain.com,FMS2.mydomain.com,FMS3.mydomain.com and FMS4.mydomain.com

    So now you want to map site1.mydomain.com to  FMS1.mydomain.com so in this case your flashvars would be equal to "rtmp://FMS1.mydomain.com"