Skip to content
Paul Gregoire edited this page May 11, 2016 · 2 revisions

Security

Global Scope Connection

By default, Flash media servers deny access to the global scope (or whatever term they use for it); so RTMP connections to rtmp://yourhost/ would fail. In Red5, this is also the case by default, but this logic can customized using a ScopeSecurityHandler implementation. The latest version of Red5 has its GlobalScope configured to deny the connections to it, but by removing the securityHandlers property in your global.scope bean in the webapps/red5-default.xml file, the connections would be allowed. It should also be noted that you could also just set the connectionAllowed value to true.

    <bean id="global.scope" class="org.red5.server.scope.GlobalScope" init-method="register">
        <property name="server" ref="red5.server" />
        <property name="context" ref="global.context" />
        <property name="handler" ref="global.handler" />
        <property name="persistenceClass">
            <value>org.red5.server.persistence.FilePersistence</value>
        </property>
        <property name="securityHandlers">
            <set>
                <bean class="org.red5.server.scope.ScopeSecurityHandler">
                    <!-- By default, connections to global scope are denied -->
                    <property name="connectionAllowed" value="false" />
                </bean>
            </set>
        </property>
    </bean>
Clone this wiki locally