In Red5, you have pretty much full access to manipulate the embedded Tomcat engine via Spring. With that being said I would like to give details on how to change the http connector between two available options; there are several other options, but I'll only be covering NIO and BIO. First a quick explanation of these two options:
<property name="connector">
<bean class="org.apache.catalina.connector.Connector">
<constructor-arg type="java.lang.String" value="org.apache.coyote.http11.Http11Protocol" />
<property name="port"><value>80</value></property>
<property name="redirectPort"><value>443</value></property>
<property name="enableLookups"><value>false</value></property>
</bean>
</property>
To use the NIO connector simply change the constructor arg as shown below:
<property name="connector">
<bean class="org.apache.catalina.connector.Connector">
<constructor-arg type="java.lang.String" value="org.apache.coyote.http11.Http11NioProtocol" />
<property name="port"><value>80</value></property>
<property name="redirectPort"><value>443</value></property>
<property name="enableLookups"><value>false</value></property>
</bean>
</property>
View this Post in: Chinese(S) Chinese(T) French Arabic Bulgarian Croatian Czech Danish Dutch Finnish German Greek Hindi Italian Japanese Korean Norwegian Polish Portuguese Romanian Russian Spanish Swedish
Tags: connector, http, linux, nio, osx, RTMPS, rtmpt, spring, tomcat
Some of you may find yourself in a situation where your Red5 server is on an internal network or otherwise un-reachable from the Internet. This set of rewrite rules will allow you to provide access to Red5 using an Apache web server (assuming the web server has access to the Internet).
The following rules assume that your Red5 server is running on a server with the IP address of 10.0.0.5, accepting HTTP connections on port 5080, and your application name is "myapp".
RewriteRule ^/(open/.*)$ http://10.0.0.5:5080/myapp/$1 [P]
RewriteRule ^/(send/.*)$ http://10.0.0.5:5080/myapp/$1 [P]
RewriteRule ^/(idle/.*)$ http://10.0.0.5:5080/myapp/$1 [P]
RewriteRule ^/(close/.*)$ http://10.0.0.5:5080/myapp/$1 [P]
If you need more information on mod_rewrite, use this link.
View this Post in: Chinese(S) Chinese(T) French Arabic Bulgarian Croatian Czech Danish Dutch Finnish German Greek Hindi Italian Japanese Korean Norwegian Polish Portuguese Romanian Russian Spanish Swedish
Tags: apache, mod_rewrite, rtmpt