<div class="gmail_quote">

<br>
Hi,<br>
<br>
<br>
I have multiple video streaming servers running on some machines<br>
internally on LAN.<br>
For different subdomains.<br>
i.e.<br>
<a href="http://site1.mydomain.com" target="_blank">site1.mydomain.com</a><br>
<a href="http://site2.mydomain.com" target="_blank">site2.mydomain.com</a><br>
<a href="http://site3.mydomain.com" target="_blank">site3.mydomain.com</a><br>
<a href="http://site4.mydomain.com" target="_blank">site4.mydomain.com</a><br>
<br>
<br>
<br>
The front end to the world is apache2 on a Bastion Host.<br>
I do not have a DNS running over there.<br>
<br>
<br>
To be able to reach the streaming server I<br>
embed a javascript in HTML pages<br>
as follows<br>
Code:<br>
<br>
<embed .....<br>
var="rtmp://<a href="http://site1.my_domain.com" target="_blank">site1.my_domain.com</a>"<br>
<br>
><br>
<br>
<br>
the problem is the website are many<br>
<br>
<a href="http://site1.mydomain.com" target="_blank">site1.mydomain.com</a><br>
<a href="http://site2.mydomain.com" target="_blank">site2.mydomain.com</a><br>
<a href="http://site3.mydomain.com" target="_blank">site3.mydomain.com</a><br>
<a href="http://site4.mydomain.com" target="_blank">site4.mydomain.com</a><br>
<br>
each on a separate physical server.<br>
<br>
Each of these four have their own streaming servers the front end to<br>
each of these four is a common Bastion Host.<br>
<br>
<br>
If I run rtmp on each of the subdomains at a different port<br>
<br>
how will I make sure<br>
a request such as<br>
<br>
rtmp://<a href="http://site1.mydomain.com" target="_blank">site1.mydomain.com</a><br>
rtmp://<a href="http://site2.mydomain.com" target="_blank">site2.mydomain.com</a><br>
<br>
goes to their respective servers.<br>
from the front end server.<br>
<br>
What do I need to handle in this case ?<br>
<br>
IPTABLES came to mind instantly but from the client browser on<br>
internet when some one requests<br>
rtmp://<a href="http://site1.mydomain.com" target="_blank">site1.mydomain.com</a><br>
<br>
how will I make sure this rtmp request is mapped to a port different<br>
than<br>
1935 as there are three other streaming servers which are also to<br>
respond to their respective requests<br>
?<br>
<br>
For handling HTTP requests in this case I use Apache Reverse Proxy<br>
but for rtmp requests I am not clear as which direction to proceed.<br>
<font color="#888888"><br>
<br></font></div><br clear="all"><br>-- <br>Tapas<br><a href="http://mightydreams.blogspot.com">http://mightydreams.blogspot.com</a><br><a href="http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers">http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers</a><br>
<br>