Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am having a video streaming website. Which is using Open Source Streaming Server Red5. Is it possible some how to redirect the traffic for rtmp via Apache to the said Red5 server.

share|improve this question

2 Answers 2

You could reference all of your videos as if they were in a directory as follows:

<a href="rtmp://www.example.com/media/...">

Then use Apache's reverse proxy feature to forward requests for anything in the media folder to the Red5 server.

ProxyPass /media http://red5server.example.com/
ProxyPassReverse /media http://red5server.example.com/

A request for rtmp://www.example.com/media/filename.flv would proxy through Apache to your internal server as http://red5server.example.com/filename.flv.

share|improve this answer

You can use mod proxy utility of Apache for this.Follow these steps to do so :

1.Open httpd.conf file located in the conf directory of the web server.

2.Edit the file by uncommenting them :

 LoadModule proxy_module modules/mod_proxy.so
 LoadModule rewrite_module modules/mod_rewrite.so
 LoadModule proxy_http_module modules/mod_proxy_http.so.

3.Add the following lines in the file-

 RewriteEngine On 
 RewriteRule ^/((open|send|idle|close|fcs)/.*)$ http://www.yourcompleteURL.com/$1 [P,L] 

Save the file and restart the service.You can test these changes by this URL - http://www.yourwebserver.com/open/1/. It should display "Bad Request.Only RTMPT supported."

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.