Справочник Пользователя для Macromedia flash media server 2-using flash media server edge servers
12
Using Edge and Origin Servers
For example, if your applications are running on fms-secure.foo.com, you can direct the
connection requests from clients’ devices or computers to the proxy server (or virtual host)
called fms.foo.com
connection requests from clients’ devices or computers to the proxy server (or virtual host)
called fms.foo.com
,
which makes the connection to fms-secure.foo.com
,
where
your
applications are running. The client is not aware that its request is being sent to another
server.
server.
Routing information
The Flash Media Server or network administrator specifies the routing information for a
proxy or edge server in the
proxy or edge server in the
RouteEntry
tags of the Vhost.xml configuration file.
Administrators use the Vhost.xml file to configure how and where to route connections to the
desired destination.
desired destination.
The
protocol
attribute in the
RouteEntry
tag specifies the protocol of the outgoing
connection. This attribute must be set to either "rtmp" or "rtmps" to indicate a nonsecure or
secure connection.
secure connection.
The
RouteTable
container tag holds all the
RouteEntry
tags. For example, the
RouteTable
container may hold one
RouteEntry
tag to specify a secure outgoing connection by using
RTMP, and another
RouteEntry
tag that specifies the nonsecure RTMP connection. If a
protocol is not specified, the outgoing connection uses the same protocol as the incoming
connection.
connection.
For detailed information on these routing tags, see “Vhost.xml file” in Managing Flash Media
Server.
Server.
Connecting to an edge server
Clients can explicitly connect to a specific edge server when they know it is available. You use
a URI in a wrapped format to make the connection to an explicit proxy:
a URI in a wrapped format to make the connection to an explicit proxy:
rtmp://edge/?rtmp://origin/app
You can also connect to a chain of proxies by forming a string that routes the outgoing
connection requests through a sequence of explicitly identified proxies:
connection requests through a sequence of explicitly identified proxies:
rtmp://edge1/?rtmp://edge2/?rtmp?://edge3/?rtmp://edge4/?rtmp://origin/app
As the connection moves through each edge in the chain, Flash Media Server drops the first
token in the string. After making the connection to
token in the string. After making the connection to
edge1
, the connection string changes to:
rtmp://edge2/?rtmp?://edge3/?rtmp://edge4/?rtmp://origin/app