-
-
Notifications
You must be signed in to change notification settings - Fork 1k
HTTP and RTMPT mappings
mondain edited this page Sep 9, 2014
·
2 revisions
To add more listening ports to your server, open the conf/jee-container.xml file and locate the tomcat.server bean and its connectors property. By default it will look like this:
<property name="connectors">
<list>
<bean name="httpConnector" class="org.red5.server.tomcat.TomcatConnector">
<property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" />
<property name="address" value="${http.host}:${http.port}" />
<property name="redirectPort" value="${https.port}" />
</bean>
</list>
</property>
Add two more ports (80 and 8080):
<property name="connectors">
<list>
<bean name="httpConnector" class="org.red5.server.tomcat.TomcatConnector">
<property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" />
<property name="address" value="${http.host}:${http.port}" />
<property name="redirectPort" value="${https.port}" />
</bean>
<bean name="httpConnector2" class="org.red5.server.tomcat.TomcatConnector">
<property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" />
<property name="address" value="${http.host}:80" />
<property name="redirectPort" value="${https.port}" />
</bean>
<bean name="httpConnector3" class="org.red5.server.tomcat.TomcatConnector">
<property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" />
<property name="address" value="${http.host}:8080" />
<property name="redirectPort" value="${https.port}" />
</bean>
</list>
</property>
How to add RTMPT easily to your Red5 application: http://gregoire.org/2009/01/28/rtmpt-and-red5/