Joachim,

Cool.

Thank you so much.

I now also have rtmpt also operating via mod_jk as well.

As I previously said.

You da man!!

I will write up tomorrow what I did to use mod_jk.

I have moved red5 from webapps below Tomcat to another folder and it works
great,
pulling video streams, etc.

Also, I have disabled port 8080 externally since I pass everything from
Tomcat via mod_jk
so this port is no longer exposed.

Hopefully, what I have done will add a couple of layers of protection to
RED5 for Tomcat users.

Again, thanks for your help.

Regards,

Lenny


On 6/21/07, Joachim Bauch <[EMAIL PROTECTED]> wrote:

Hi,

as promised, here's the howto on setting up RTMPT with Apache2 and Tomcat:

1. Update Red5 to r2127 or later
2. Rebuild WAR using "ant webwar" (Java6) or "ant webwar_java5" (Java 5)
3. Undeploy old "red5" application and deploy new WAR package.
4. Enable some modules in your httpd.conf:

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

5. Add the following lines to your Apache2 configuration:

  RewriteEngine On
  RewriteRule ^/open/(.*) http://localhost:8080/red5/open/$1 [P,L]
  RewriteRule ^/close/(.*) http://localhost:8080/red5/close/$1 [P,L]
  RewriteRule ^/idle/(.*) http://localhost:8080/red5/idle/$1 [P,L]
  RewriteRule ^/send/(.*) http://localhost:8080/red5/send/$1 [P,L]

  You might need to adjust the port depending on your Tomcat setup.

6. Restart Apache2.
7. If you access "http://localhost/open/1"; through your browser, you
  should see a message like "Bad request, only RTMPT supported."
8. Now you should be able to connect to your applications using the
  RTMPT connection string "rtmpt://localhost/<app>"
9. Have fun ;)

Tested with Tomcat 6.0.10, Java 1.6, Apache 2.2.4, please let me know
if this works with your setup, too.

Joachim

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to