MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Servery MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE. Managing Flash Media Server [en] Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 240
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků

Shrnutí obsahu

Strany 1 - Managing Flash Media Server

Managing Flash Media Server

Strany 2

10 About This Manual

Strany 3 - Contents

100 Configuration FilesSee alsoACCP, Admin, ECCP, Edge, HTTP, RTMP (Protocol) containersCoreGCThis tag specifies how often to check for and remove idl

Strany 4 - 4Contents

XML configuration files 101DenyThis tag specifies which automatic proxy discovery messages Flash Media Server does not respond to.DescriptionThis tag

Strany 5 - Contents 5

102 Configuration FilesContained tagsMinIOThreads, MaxIOThreads, SocketOverflowBuckets, SocketTableSizeSee alsoACCP, Admin, Core, ECCP, HTTP, RTMP (Pr

Strany 6 - 6Contents

XML configuration files 103Enable (AutoDiscovery)Server.xml uses four tags named Enable: the Enable tag in the AutoDiscovery container and the Enable

Strany 7 - About This Manual

104 Configuration FilesSee alsoFreeRatioFreeRatioLocated in the LargeMemPool, MessageCache, SegmentsPool, and SmallMemPool containers.DescriptionThis

Strany 8 - About the Flash Media Server

XML configuration files 105GlobalRatioLocated in the LargeMemPool, MessageCache, SegmentsPool, and SmallMemPool containers.DescriptionThis tag specifi

Strany 9 - Additional resources

106 Configuration FilesSyntax<HostPort>[<ip>][:<port>]</HostPort>HTTPContainer tag.DescriptionThe tags nested within the HTTP

Strany 10 - 10 About This Manual

XML configuration files 107DescriptionThe tags nested within the LargeMemPool container configure the large memory pool, which caches large chunks of

Strany 11 - Managing the Server

108 Configuration FilesMaskA three-digit octal value used by the Linux umask (user permissions mask) command to set a file creation mask. The user mus

Strany 12 - 12 Managing the Server

XML configuration files 109DescriptionThis tag defines the maximum size of the cache in megabytes. The default is 100 MB.See alsoMaxCacheUnitsMaxCache

Strany 13 - Configuring virtual hosts

111CHAPTER 1Managing the ServerAs a Flash Media Server administrator, you’ll need to perform several administrative tasks after the server is installe

Strany 14 - To start or stop the server:

110 Configuration FilesMaxIOThreadsLocated in the ACCP, Admin, Core, ECCP, Edge, HTTP, and RTMP (Connector) containers.DescriptionThis tag specifies t

Strany 15 - To stop the server on Linux:

XML configuration files 111MaxUnitSizeLocated in the LargeMemPool, MessageCache, SegmentsPool, and SmallMemPool containers.DescriptionThis tag specifi

Strany 16 - Using the management console

112 Configuration FilesDescriptionThis tag specifies the minimum number of threads in the pool for I/O operations. The default is 1 times the number o

Strany 17 - ■ View application logs

XML configuration files 113MyZoneThis tag specifies the zone that the edge or proxy server belongs to when it broadcasts a FPAD message. The message i

Strany 18 - 18 Managing the Server

114 Configuration FilesExamples<Allow>foo.macromedia.com,10.41.1.55</Allow><Deny>all</Deny><Order>Deny,Allow</Order&g

Strany 19 - Managing applications

XML configuration files 115Contained tagsACCP, ECCP, RTMP (Protocol) containersProxyInfoThis tag specifies the host (or IP) and port to return to the

Strany 20 - 20 Managing the Server

116 Configuration FilesRTMP (Connector)Flash Media Server uses two container tags named RTMP: one nested within the Connector container, and the other

Strany 21 - Managing applications 21

XML configuration files 117See alsoRTMP (Connector) in Connector container.ScopeThis tag determines whether to write a separate log file for each virt

Strany 22 - 22 Managing the Server

118 Configuration FilesContained tagsAdminServer, AutoDiscovery, Logging, Mask, Process, ResourceLimits, and SSL containers ServerDomainThis tag speci

Strany 23 - Viewing active clients

XML configuration files 119SocketGCDescriptionThis tag specifies in seconds how often Flash Media Server checks for and removes inactive sockets.The d

Strany 24 - Viewing active shared objects

12 Managing the ServerYou can configure Flash Media Server 2 as an origin or edge server, configure adaptors and virtual hosts and change the location

Strany 25 - Viewing active streams

120 Configuration FilesThe following is a quick-start to enable SSL connections with Flash Media Server. Specify the location of the certificate in t

Strany 26 - 26 Managing the Server

XML configuration files 121To import these certificates, run FMSmaster > Console > Initialize [directory]. This action imports all current certi

Strany 27

122 Configuration FilesThe cipher list consists of one or more cipher strings separated by colons. Commas or spaces are also acceptable separators but

Strany 28 - Managing the servers

XML configuration files 123These cipher strings instruct Flash Media Server to accept only RSA key exchange, and refuse export or null encryption. The

Strany 29 - Managing servers

124 Configuration FilesHere is the complete list of components that Flash Media Server can evaluate:Key Exchange Algorithm DescriptionkRSA Key exchang

Strany 30 - Viewing server details

XML configuration files 125SSLClientCtxContainer tag.DescriptionThe tags in this section configure Flash Media Server to perform as an SSL client for

Strany 31 - Viewing connection details

126 Configuration FilesDescriptionEntropy is a measure of randomness. The more entropy, the more random are the numbers that the PRNG will generate. T

Strany 32 - Viewing application details

XML configuration files 127See alsoSSLVerifyDepthSSLVerifyDepthThis tag specifies the maximum depth in the certificate chain from which Flash Media Se

Strany 33 - Viewing license files

128 Configuration FilesSee alsoClusterMonitorIntervalUIDThis tag contains the server process user ID. DescriptionIf no UID or group ID (GID) is specif

Strany 34 - Viewing the server log file

XML configuration files 129Users.xml fileUsers.xml is the configuration file for the Flash Media Admin Service users and is located at the root level

Strany 35 - Access log file

Basic server settings 13To edit the <AppsDir> tag in the Vhost.xml file:1. Locate the Vhost.xml file for the virtual host you are working with.

Strany 36

130 Configuration FilesDescription of Users.xml tagsThe following alphabetical list of Users.xml tags contains additional information, including cross

Strany 37

XML configuration files 131DescriptionThis tag lists the Flash Media Admin Service commands that the administrator can access using HTTP. You can auth

Strany 38

132 Configuration FilesDescriptionThis Deny tag lists the Flash Media Admin Service commands that an administrator cannot use via HTTP. You can deny a

Strany 39 - Application log file

XML configuration files 133HTTPCommandsContainer tag.DescriptionThis section contains the settings for those Flash Media Admin Service commands that c

Strany 40 - Diagnostic log file

134 Configuration FilesThe default sequence Allow, Deny means that administrative access is allowed unless the user is specified in the Allow list of

Strany 41 - Category Description

XML configuration files 135UserListContainer tag. DescriptionThe UserList tag defines the access permissions for administrators that use the Flash Med

Strany 42 - Message ID Description

136 Configuration Files<Events>connect;disconnect;play;pause;unpause;stop</Events><Fields>x-category;x-event;date;time;x-pid;c-ip;cs

Strany 43

XML configuration files 137Description of Logger.xml tagsThe following alphabetical list of Logger.xml tags contains additional information, including

Strany 44

138 Configuration FilesContained tagsDelimiter, EscapeFields, Events, Fields, FileName, LogServer, QuoteFields, Rotation, TimeApplicationContainer tag

Strany 45

XML configuration files 139Contained tagsDirectory, Rotation. TimeDirectoryThis tag specifies the directory where the log files are located.Descriptio

Strany 46

14 Managing the ServerDeploying server-side scripts In developing applications for Flash Media Server, you may decide to use server-side scripts to im

Strany 47

140 Configuration FilesDescriptionThe following table lists the events recorded in the Access log file. Events are logged in a semicolon-separated lis

Strany 48

XML configuration files 141See alsoFields400 Bad request; client connected to server using an unknown protocol.401 Connection rejected by the applicat

Strany 49

142 Configuration FilesFieldsThis tag specifies which fields for an event are logged in the Access log file.DescriptionFields are associated with the

Strany 50

XML configuration files 143The following table is a complete list of fields associated with events in the Access log file. Not every field is associat

Strany 51

144 Configuration Filessc-bytes application This field shows the number of bytes transferred from the server to the client. This information can be us

Strany 52 - Configuring logging

XML configuration files 145See alsoEventsFileNameThis tag specifies the name of the Access log file.DescriptionThe Access log file name includes a dat

Strany 53 - Logger.xml file example

146 Configuration FilesLoggerRoot tag.DescriptionThe Logger tag is a container for all the other tags in Logger.xml.LogServerContainer tag.Description

Strany 54 - 54 Managing the Server

XML configuration files 147RotationContainer tag.DescriptionThe tags in this section configure the rotation of the log files.Located in Access, Applic

Strany 55

148 Configuration FilesTimeThe Time field in a log file can be logged either in UTC (GMT) or local time. DescriptionThe setting for the Time tag can b

Strany 56 - 56 Managing the Server

XML configuration files 149<SetCookie></SetCookie><Redirect enable=”false” maxbuf=”16384”></Redirect><NeedClose></Nee

Strany 57

Basic server settings 154. In the Services list, scroll down and select Flash Media Server.5. Click the Stop button at the top of the control panel. T

Strany 58 - Using the fmsmgr utility

150 Configuration FilesIdleAckIntervalSpecifies the maximum time the server may wait before it returns an ack (acknowledgement code) for a client idle

Strany 59 - Command Description

XML configuration files 151Description of Adaptor.xml tagsThe following alphabetical list of Adaptor.xml tags contains additional information, includi

Strany 60

152 Configuration FilesDenyThis tag identifies the hosts whose clients’ attempts to connect to the server(s) will be rejected.DescriptionThe Deny tag

Strany 61 - Deploying Flash Media

XML configuration files 153SyntaxThe connection string for the HostPort tag has the following syntax:<HostPort><ip>:<port>,<port&

Strany 62 - Deploying on two computers

154 Configuration FilesSee alsoHostPortListHostPortListThis tag contains a list of HostPort tags associated with this adaptor.Example<HostPort secu

Strany 63 - Defining a secure port

XML configuration files 155Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)..Host: localhost:1935..

Strany 64 - Configuring SSL

156 Configuration FilesIdleAckIntervalThis tag specifies the maximum time the server may wait before it sends back an ack (acknowledgement code) for a

Strany 65

XML configuration files 157MaxFailuresThis tag specifies the maximum number of failures an edge server may incur before it restarts. DescriptionDefau

Strany 66 - About configuration levels

158 Configuration FilesMimeTypeThis tag specifies the default MIME (Multipurpose Internet Mail Extensions) type header sent on tunnel responses.Descri

Strany 67 - About configuration levels 67

XML configuration files 159The alternative sequence Deny,Allow indicates that access to a server is allowed unless specified in the Deny tag and not s

Strany 68

16 Managing the ServerUsing the management consoleThe management console for the Flash Media Server 2 release has been redesigned to ease the workflow

Strany 69 - About configuration levels 69

160 Configuration FilesThis example instructs Flash Media Server to redirect unknown requests to the specified redirect host. <Host port="443&

Strany 70 - ■ An Application.xml file

XML configuration files 161The following is a quick-start to allowing SSL-enabled connections to Flash Media Server. Go to the SSL section of the Ada

Strany 71 - About configuration levels 71

162 Configuration FilesSee alsoSSLPassPhraseSSLCipherSuiteThis tag specifies the suite of encryption ciphers that Flash Media Server uses to secure in

Strany 72

XML configuration files 163SSLServerCtxContainer tag.DescriptionThe tags in this section control the SSL configuration for this adaptor.Contained tags

Strany 73 - Field name Description

164 Configuration FilesVhost.xml fileThe Vhost.xml configuration file defines an individual virtual host in Flash Media Server. Each virtual host dire

Strany 74 - Using the admin commands

XML configuration files 165<GlobalRatio>0.4</GlobalRatio><MaxAge>1000000</MaxAge><UpdateInterval>1024</UpdateInterval

Strany 75 - Sample URL

166 Configuration FilesSummary of Vhost.xml tagsThe following list alphabetically displays the tags in the Vhost.xml configuration file. Vhost.xml tag

Strany 76

XML configuration files 167MaxStreamsSpecifies the maximum number of streams that can be created.MaxUnitSizeSpecifies the size threshold for messages

Strany 77

168 Configuration FilesDescription of Vhost.xml tagsThe following alphabetical list of Vhost.xml tags contains additional information, including cross

Strany 78

XML configuration files 169If more than one virtual host on the same adaptor has been defined with the same alias, then the first match that is found

Strany 79 - Symbolic text substitutions

Using the management console 17 View application logs. View logs of server connections and other server events. View streams and inspect shared obj

Strany 80 - Predefined symbols

170 Configuration FilesAnonymousThis tag configures the virtual host as an anonymous proxy (also called an implicit or transparent proxy) or as an exp

Strany 81 - Mapping environment variables

XML configuration files 171AppInstanceGCThis tag specifies how often to check for and remove unused resources for application instances, such as Share

Strany 82 - Building the symbol map

172 Configuration FilesThe default location is the cache folder in the server installation directory. Syntax<CacheDir enabled="false">

Strany 83

XML configuration files 173FreeRatioLocated in LargeMemPool, MessageCache, SegmentsPool, and SmallMemPool containers.This tag specifies the percentage

Strany 84

174 Configuration FilesLocalAddressThis tag binds a proxy's outgoing connection to a specific local IP address. DescriptionThe LocalAddress tag l

Strany 85 - Configuration Files

XML configuration files 175MaxCacheUnitsLocated in LargeMemPool, MessageCache, SegmentsPool, and SmallMemPool containers.This tag specifies the maximu

Strany 86 - Server.xml file

176 Configuration FilesMessageCacheContainer tag.DescriptionThis section contains the tags that control how the message cache holds onto messages used

Strany 87 - XML configuration files 87

XML configuration files 177ProxyContainer tag.DescriptionThe tags nested in this section configure this virtual host as a proxy server that can forwar

Strany 88 - 88 Configuration Files

178 Configuration FilesDescriptionProxies or edge servers are configured with the RouteEntry tag to direct connections to another destination. The Rou

Strany 89 - Summary of Server.xml tags

XML configuration files 179RouteTableContainer tag.DescriptionThe RouteEntry tags nested under the RouteTable tag specify the routing information for

Strany 90 - Server.xml tag Description

18 Managing the Server2. Enter the name and address of the server or virtual host you want to connect to. You can enter localhost, which will refer t

Strany 91

180 Configuration FilesSegmentsPoolContainer tag.DescriptionThe tags nested within this container configure how the segments pool caches segments of F

Strany 92

XML configuration files 181 If the SSL tags in the Vhost.xml file override the SSL tags in the Server.xml file, Flash Media Server uses the SSL tags

Strany 93

182 Configuration FilesSyntaxvirtualDirectory;actualDirectoryThe Streams tag allows you to specify a virtual directory for stored stream resources use

Strany 94

XML configuration files 183Example<VirtualDirectory><Streams key="A">foo;c:\streams\on2</Streams><Streams key="B&q

Strany 95 - XML configuration files 95

184 Configuration FilesSyntax<VirtualDirectory><Streams>key-value;virtual path;directory</Streams></VirtualDirectory>You speci

Strany 96 - AllowZones

XML configuration files 185VirtualKeysThis tag sets the virtual key mappings for the different versions of Flash Player connecting to Flash Media Serv

Strany 97 - AutoDiscovery

186 Configuration FilesEach virtual host can contain multiple Application.xml files. The Application.xml file in the virtual host directory configures

Strany 98 - BroadcastPort

XML configuration files 187<StreamManager><StorageDir></StorageDir><DuplicateDir></DuplicateDir><CachePrefix></

Strany 99 - Connector

188 Configuration Files<Bits></Bits></UserAgent></Client><HTTP><HTTP1_0></HTTP1_0><Verbose></Verbos

Strany 100 - Diagnostic

XML configuration files 189BandwidthContainer tag; contains tags to configure the bandwidth settings for server-client communications.BandwidthCapCont

Strany 101 - XML configuration files 101

Managing applications 19Setting the refresh rateThe management console provides live performance data on the server. You can use the Refresh Rate pop-

Strany 102 - Enable (Access)

190 Configuration FilesHTTP1_0Allows or disallows use of the HTTP 1.0 protocol.HTTPTunnelContainer tag; contains tags to configure HTTP tunneling.Idle

Strany 103 - FreeMemRatio

XML configuration files 191MimeTypeSpecifies the default MIME-type header sent on tunnel responses.NotifyAudioStopSpecifies whether Flash Media Server

Strany 104 - GlobalQueue

192 Configuration FilesDescription of Application.xml tagsThe following alphabetical list of Application.xml tags contains additional information, inc

Strany 105 - HostPort

XML configuration files 193AllowHTTPTunnelThe tag configures Flash Media Server to allow HTTP tunneling connections into this application. Descriptio

Strany 106 - LargeMemPool

194 Configuration FilesAutoCommitShared Objects are automatically committed when they have been changed.DescriptionSetting this tag to false disables

Strany 107 - LocalHost

XML configuration files 195See alsoBandwidthBitsThis tag contains the settings for Flash Player on the Windows and Macintosh platforms.Examples<Bit

Strany 108 - MaxCacheSize

196 Configuration FilesBy default, the prefix is set to ?IP?You can include the IP address in the prefix to avoid file collision. For example, the pro

Strany 109 - MaxConnectionThreads

XML configuration files 197ClientContainer tag.DescriptionThe tags nested within this container configure the client. DescriptionBy default, the Clien

Strany 110 - MaxQueueSize

198 Configuration FilesCombineSamplesContainer tag.DescriptionFlash Media Server conserves system resources by combining sound samples. This strategy

Strany 111 - MinConnectionThreads

XML configuration files 199DuplicateDir (StreamsManager)This is one of two tags named DuplicateDir in the Application.xml file.Located in StreamManage

Strany 112 - MsgPoolGC

TrademarksAfterburner, AppletAce, Attain, Attain Enterprise Learning System, Attain Essentials, Attain Objects for Dreamweaver, Authorware, Authorware

Strany 113 - NumCRThreads

20 Managing the Server A user debugging another application now desires to see the contents of a shared object that they have implemented in their ap

Strany 114 - Protocol

200 Configuration FilesFileObjectContainer tag.DescriptionThe VirtualDirectory tag nested within this container configures the JSEngine file object se

Strany 115 - ResourceLimits

XML configuration files 201Example<Host>myserver:8080</Host>To specify the port number in this string, add :[port] to the end of the host

Strany 116 - RTMP (Protocol)

202 Configuration FilesThe Application.xml configuration file offers three representative settings for these parameters. These settings recommend that

Strany 117 - SegmentsPool

XML configuration files 203The interval for an idle post ranges from 0 to 4064 milliseconds. If the IdlePostInterval tag is set to a value that lies o

Strany 118 - SmallMemPool

204 Configuration FilesKeyFrameIntervalThis tag defines how often to generate and save keyframes in an FLV file. DescriptionSetting this tag to a high

Strany 119 - SocketTableSize

XML configuration files 205DescriptionHaving an application instance loaded at server startup saves time when the first client connects to that applic

Strany 120 - SSLCACertificatePath

206 Configuration FilesMaxCoresThe value for this tag determines how many core processes can exist for an application. DescriptionBy default, the Max

Strany 121 - SSLCipherSuite

XML configuration files 207DescriptionThis tag defines the maximum time for a transfer to be completed. The default time is 60 seconds.Operations such

Strany 122 - Examples

208 Configuration FilesNotifyAudioStopContainer tag.DescriptionThe Duration tag nested within this container determines whether or not Flash Media Ser

Strany 123 - XML configuration files 123

XML configuration files 209ProxyContainer tag.DescriptionThe tags nested within this container configure the HTTP Proxy settings.Contained tagsHost, P

Strany 124 - Digest Types Description

Managing applications 21Creating a new application instanceIn the View Applications section of the management console, you can create a new applicatio

Strany 125 - SSLRandomSeed

210 Configuration FilesResyncDepthThis tag instructs Flash Media Server to resynchronize a shared object file.DescriptionThe shared object is resynchr

Strany 126 - SSLVerifyCertificate

XML configuration files 211DescriptionThe default size is 1024 kilobytes, which is the equivalent of 1 megabyte. The lower and upper limits on the siz

Strany 127 - ThreadPoolGC

212 Configuration FilesSendSilenceContainer tag.DescriptionThe Interval tag nested within this container configures the settings for sending silent me

Strany 128 - UserData

XML configuration files 213SharedObjManagerContainer tag.DescriptionThe tags nested within this container configure the Shared Object Manager setting

Strany 129 - Summary of Users.xml tags

214 Configuration FilesSet this tag only when the files for recorded streams must be stored in a location other than the application directory. See al

Strany 130 - Description of Users.xml tags

XML configuration files 215UnrestrictedAuthThis tag determines whether or not to allow sending the username/password combination with each HTTP redire

Strany 131 - Deny (HTTPCommands)

216 Configuration FilesSyntax<VirtualDirectory><virtual dir>;<actual dir></VirtualDirectory> WriteBuffSizeThis tag specifies i

Strany 132 - Deny (User)

2174CHAPTER 4Flash Media Server SecurityMacromedia Flash Media Server 2 will typically be used in a network environment where many users will have acc

Strany 133 - Order (User)

218 Flash Media Server SecurityEdit the security tags in the configuration files Utilize the limits that can be set in the server’s configuration fil

Strany 134 - Password

Managing server security 219The MaxAppInstances tag nested in the ResourceLimits container lets you limit the number of application instances that can

Strany 135 - Logger.xml file

22 Managing the ServerViewing the Live [Application] log fileEach application creates an associated log file. The Live [Application] log pane displays

Strany 136 - Summary of Logger.xml tags

220 Flash Media Server SecurityAbout authentication and authorization To authenticate (validate) administrators, Flash Media Server employs several la

Strany 137 - Container tag

JavaScript security 221By default, only the management console performs user authorization. When developing your own media applications, you can decid

Strany 138 - Delimiter

222 Flash Media Server SecuritySecure script loadingThe Flash Media Server script security model enables one to limit the exposure to potentially mali

Strany 139 - EscapeFields

JavaScript security 223// available globally as idGen.global.idGen = protectObject( idgen );// Make idGen non-enumerable, read-only and permanentsetAt

Strany 140 - Field Status Code Description

224 Flash Media Server SecurityPermissions levelsFlash Media Server does not use explicit levels of privileges, but provides a way for the application

Strany 141 - See also

JavaScript security 225Asynchronous system callsIn Flash Media Server, application developers can implement asynchronous system calls, where the calle

Strany 142

226 Flash Media Server SecurityChoosing passwordsWhen choosing passwords, remember to make them as secure as possible. The following guidelines can he

Strany 143 - Field Event(s) Description

Access DLL 227Access DLL is the libconnect.dll file (this module is named the libconnect.so file in Linux installations) stored within the modules/acc

Strany 144

228 Flash Media Server SecurityAccess DLL APIsAccess DLL provides the following AccessAdaptor APIs:Access DLL provides the following AccessContext API

Strany 145 - FileName

Access DLL 229Modifying Access DLLThe Access DLL module contains the Sample.dsp file. You can change or configure this file to conform to your site-sp

Strany 146 - QuoteFields

Managing applications 23Viewing active clientsThis pane lists all client connections including debugging connections to the selected application. The

Strany 147 - ServerID

230 Flash Media Server SecuritySample Adaptor.cpp fileHere is an excerpt from the Adaptor.cpp file that you can modify to fit your local authenticatio

Strany 148 - Adaptor.xml file

Developing secure applications 231}default:// We really shouldn't get here!fprintf( stderr, "SampleAdaptor: Unknown access event!\n" );

Strany 149 - Summary of Adaptor. xml tags

232 Flash Media Server SecurityConfigure the adaptor to listen on a secure port. If you need a secure connection, configure the adaptor for the appli

Strany 150 - Adaptor.xml tag Description

About privacy 233Send sensitive data via HTTPS If you need to send sensitive data such as credit card information, you can use HTTPS to communicate s

Strany 151

234 Flash Media Server SecurityIf the Flash Media Server and an application server are both behind a firewall, they can communicate with each other an

Strany 152

235IndexAAccess DLL 226–231APIs 228–229configuring 227examining the connection request 227modifying 229sample Adaptor.cpp file 230access logs 3

Strany 153

236 IndexApplication.xml tagsAccess 192Allow 192AllowHTTPTunnel 193Application 193Audio 193AutoCommit 194Bandwidth 194BandwidthCap 194Bits 19

Strany 154 - HTTPIdent

Index 237configuration files 85–216Adaptor.xml 148–163Application.xml 185–216Logger.xml 135–148protecting 219security tags 217–219Server.xml 86

Strany 155 - HttpUserInfo

238 Indexviewing application log file 22viewing connection data 31viewing license files 33viewing performance statistics of an application 26viewi

Strany 156 - IdlePostInterval

Index 239FreeMemRatio 103FreeRatio 104GID 104GlobalQueue 104GlobalRatio 105HeapSize 105HostPort 105HTTP 106IPCQueues 106LargeMemPool 106Loca

Strany 157 - MaxWriteDelay

24 Managing the ServerViewing active shared objectsThis pane lists the active shared objects for an application. The management console displays their

Strany 158 - NeedClose

240 IndexUsers.xml tagsAdminServer 130Allow (HTTPCommands) 130Allow (User) 131Deny (HTTPCommands) 131Deny (User) 132Enable 132HTTPCommands 133O

Strany 159 - Redirect

Managing applications 25Viewing active streamsThis pane lists all the active streams in the selected application. The management console displays thei

Strany 160 - SetCookie

26 Managing the ServerViewing application performanceThis pane displays the live information for this application. Application and server administrato

Strany 161 - SSLCACertificateKeyFile

Managing the administrative users 27Managing the administrative usersIn this section of the management console you control Flash Media Server users wi

Strany 162 - SSLPassPhrase

28 Managing the ServerManaging the serversThe Server pane occupies the left side of the Manage Server section of the management console. This pane lis

Strany 163 - WriteBufferSize

Managing the servers 29Clicking one of the buttons lets the administrator perform one of the following administrative actions on a selected server: A

Strany 164 - Vhost.xml file

3ContentsAbout This Manual. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Intended audience . . . . . . . . . . . . .

Strany 165 - XML configuration files 165

30 Managing the ServerClicking the buttons lets the administrator perform the following actions: Review the performance statistics for the computer w

Strany 166 - Summary of Vhost.xml tags

Managing the servers 31Viewing connection detailsThis pane lists all client connections to the selected server. The management console displays the fo

Strany 167 - Vhost.xml tag Description

32 Managing the ServerViewing application detailsThis pane displays detailed information for all the applications running on the selected server or vi

Strany 168 - Description of Vhost.xml tags

Managing the servers 33Viewing license filesThis pane displays detailed information for all license files authorizing you to run Flash Media Server on

Strany 169 - AliasList

34 Managing the ServerViewing the server log fileThis panel displays the trace messages being recorded in the server log file. The log messages repor

Strany 170 - Anonymous

Logging client connections and other system events 35Access log fileFlash Media Server 2 maintains an access log that includes statistics about client

Strany 171 - CacheDir

36 Managing the ServerThe following table lists the fields in the access logs.pause application Client pauses playing a stream.unpause application Cli

Strany 172 - DNSSuffix

Logging client connections and other system events 37x-appinst application Application instance names.c-ip application Client IP address.c-proto appli

Strany 173

38 Managing the ServerThe following events display a status code.x-sname-query application Query portion of stream URI specified in play or publish.x-

Strany 174 - MaxAppInstances

Logging client connections and other system events 39Application log fileThe application log records information about activities in application insta

Strany 175 - MaxStreams

4ContentsChapter 2: Deploying Flash Media Server. . . . . . . . . . . . . . . . . . . 61Typical configurations . . . . . . . . . . . . . . . . . .

Strany 176

40 Managing the ServerDiagnostic log fileThe diagnostic log records alternative information (alternative to the information logged by the operating sy

Strany 177 - RouteEntry

Logging client connections and other system events 41The following table lists the fields in the diagnostic logs.The following table lists the status

Strany 178

42 Managing the ServerThe following table lists the status message IDs in the diagnostic logs. Flash Media Server 2 uses the symbols %1$S, %2$S and %3

Strany 179 - RouteTable

Logging client connections and other system events 431018 The call method failed, invalid parameters: call(methodName[, resultObj, p1, pn]). 1019 Drop

Strany 180

44 Managing the Server1046 Reserved property (%1$S). 1047 Admin request received from an invalid admin server. 1048 Administrator login failed for use

Strany 181 - Contained tags

Logging client connections and other system events 451074 Stopped recording %1$S.1075 Stream %1$S has been idling for %2$S second(s). 1076 Playing and

Strany 182 - Additional information

46 Managing the Server1104 Invalid method name (%1$S). 1105 (%2$S, %3$S): Invalid application name (%1$S). 1106 Connection succeeded. 1107 Connection

Strany 183 - VirtualDirectory

Logging client connections and other system events 471131 (%2$S, %3$S): Resource limit violation. Unable to load new application: %1$S. 1132 (%2$S, %3

Strany 184 - VirtualHost

48 Managing the Server1157 (%2$S, %3$S/%1$S): Current server bandwidth usage exceeds license limit set. Rejecting connection. 1158 (%2$S, %3$S/%1$S):

Strany 185 - Application.xml file

Logging client connections and other system events 491184 Invalid cryptographic accelerator: %1$S. 1185 Failed to initialize cryptographic accelerator

Strany 186 - Overriding default settings

Contents 5Description of Vhost.xml tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .168Application.xml file. . . . . . . . . . . .

Strany 187 - XML configuration files 187

50 Managing the Server1207 Shared object %1$S has changed and is not being saved as auto commit is set to false. Current version %2$S, Last saved vers

Strany 188

Logging client connections and other system events 511235 Core (%1$S) connection to admin failed. 1236 Core (%1$S) received close command from admin.

Strany 189

52 Managing the ServerConfiguring loggingFlash Media Server logging is configured through the Server.xml and Logger.xml configuration files. Server.xm

Strany 190

Logging client connections and other system events 53For a more complete listing of all tags, see “Logger.xml file” on page 135.Logger.xml file exampl

Strany 191

54 Managing the Server<!-- 2. connect session --><!-- 3. disconnect session --><!-- 4. publis

Strany 192 - Contained tag

Logging client connections and other system events 55<!-- 25. x-spos Stream position --> <!-- 26. cs-str

Strany 193 - AllowHTTPTunnel

56 Managing the Server<QuoteFields>disable</QuoteFields> <!-- This is an optional flag to control if the fields need to be --> <!

Strany 194 - BandwidthCap

Logging client connections and other system events 57 <!-- If type="duration", rotation occurs when the duration of the log -->

Strany 195 - CachePrefix

58 Managing the ServerManaging Flash Media Server on LinuxOn all supported Linux platforms, Flash Media Server 2 is installed as a service and include

Strany 196 - CacheUpdateInterval

Managing Flash Media Server on Linux 59The following table describes the commands for the fmsmgr utility.Command Descriptionfmsmgr server adminserver

Strany 198 - Connections

60 Managing the ServerFor other administrative tasks, such as adding users or checking the status of applications, you use the management console. For

Strany 199 - EnhancedSeek

612CHAPTER 2Deploying Flash Media ServerThis chapter describes the various strategies for deploying Macromedia Flash Media Server 2, including the use

Strany 200 - FolderAccess

62 Deploying Flash Media ServerConfiguration for development and testingWhile developing and testing your applications, you may choose to install a we

Strany 201

SSL support in Flash Media Server 63Deploying on two computers with authentication through Flash Media ServerSome scenarios may require authentication

Strany 202

64 Deploying Flash Media ServerThis XML tag specifies that Flash Media Server will listen on any interface on ports 1935, 80, and 443, where 443 is de

Strany 203 - JSEngine

SSL support in Flash Media Server 65Creating multiple certificates for an adaptorYou can configure Flash Media Server to return multiple certificates

Strany 204 - LoadOnStartup

66 Deploying Flash Media ServerConfiguring independent virtual hosts for SSL applicationYou can configure the different virtual hosts in Flash Media S

Strany 205 - MaxAppIdleTime

About configuration levels 67The default directory structure installed with the server looks like this:The directory structure includes three subdirec

Strany 206 - MaxTimeOut (Connections)

68 Deploying Flash Media ServerIf there is a second adaptor, it has its own subdirectory at the same level as the _defaultRoot_ subdirectory. The _d

Strany 207 - MaxTimeOut (JSEngine)

About configuration levels 69Each adaptor directory must contain a _defaultVHost_ directory.Adding adaptors and virtual hostsTo add an adaptor to the

Strany 208 - NotifyAudioStop

7About This Manual Macromedia Flash Media Server 2 enables one-to-one, one-to-many, many-to-one, and many-to-many communication in real time between a

Strany 209

70 Deploying Flash Media ServerTo create a new virtual host, create a new virtual host directory inside the /conf/adaptor_name directory in the Flash

Strany 210 - RuntimeSize

About configuration levels 71The conf directory illustrated here contains two adaptor subdirectories: the _defaultRoot_ subdirectory and the Adaptor2

Strany 211 - ScriptLibPath

72 Deploying Flash Media ServerFor example, the following URL passes a ping command to the server:http://myFlashMediaServer:1111/admin/ping?auser=some

Strany 212 - ServerToClient (BandwidthCap)

About configuration levels 73The following is the XML result:<?xml version="1.0" encoding="utf-8" ?><result><level&

Strany 213 - StorageDir (StreamManager)

74 Deploying Flash Media ServerUsing the admin commandsMany server administration commands expect one or more parameters. These are passed to the func

Strany 214 - Subscribers

About configuration levels 75When you use the server management API over HTTP, the arguments for each command must be named. This is different from Ac

Strany 215 - Username

76 Deploying Flash Media ServerdisconnectUsers appInst, clientsn/a /admin/disconnectUsers?appInst="simpsons/game1"&clients=["137941

Strany 216 - WriteBuffSize

About configuration levels 77getNetStreams appInst n/a /admin/getNetStreams?appInst="foo"getNetStreamStats appInst, streamidsn/a /admin/getI

Strany 217 - Flash Media Server Security

78 Deploying Flash Media ServerreloadApp appInst n/a /admin/reloadApp?appInst="foo"removeAdmin userName scope /admin/removeAdmin?userName=&q

Strany 218 - ■ Vhost.xml file

Symbolic text substitutions 79Symbolic text substitutionsFlash Media Server supports the use of symbolic text substitutions in all tags in the server’

Strany 219 - Managing server security 219

8About This ManualSystem requirementsFlash Media Server can be deployed on the following systems: Microsoft Windows 2000 Server or Windows 2003 Serve

Strany 220

80 Deploying Flash Media ServerOnce you have defined such a mapping, you can use the symbol in one of the XML configuration files. To use a symbol in

Strany 221 - JavaScript security

Symbolic text substitutions 81Mapping environment variablesYou can also specify symbols that resolve to environment variables. To refer to an environm

Strany 222 - Secure script loading

82 Deploying Flash Media ServerBuilding the symbol mapYou may use a symbol anywhere, such as in the substitution.xml file, or any of the external conf

Strany 223 - Protecting objects

Configurable application object properties for server-side scripting 83For example, given the previous XML fragment, the following trace() statements

Strany 224 - Permissions levels

84 Deploying Flash Media Server

Strany 225 - Asynchronous system calls

853CHAPTER 3Configuration FilesThis chapter describes the XML files that define the Flash Media Server configuration. It presents their file structure

Strany 226 - Access DLL

86 Configuration FilesServer.xml fileThe Server.xml file is located at the root level of the conf directory and contains the tags and information used

Strany 227 - Configuring Access DLL

XML configuration files 87</Process></AdminServer><ResourceLimits><CPUMonitor>1</CPUMonitor><ThreadPoolGC>20</T

Strany 228 - Access DLL APIs

88 Configuration Files<SocketOverflowBuckets>-1</SocketOverflowBuckets><CoreTimeout>30</CoreTimeout></ECCP><ACCP>&

Strany 229 - Modifying Access DLL

XML configuration files 89<MaxAge>1000000</MaxAge><UpdateInterval>1024</UpdateInterval><FreeMemRatio>0.5</FreeMemRati

Strany 230 - Sample Adaptor.cpp file

Additional resources 9Typographical conventionsThe following typographical conventions are used in this book: Code font indicates ActionScript statem

Strany 231 - Using SSL

90 Configuration FilesAdminContainer tag; contains the tags that configure the RTMP protocols for the FMSAdmin.exe process.AdminServerContainer tag; c

Strany 232

XML configuration files 91DenySpecifies which automatic proxy discovery messages not to respond to. DiagnosticContainer tag; contains tag to enable th

Strany 233 - About privacy

92 Configuration FilesLargeMemPoolContainer tag; contains tags to configure the large memory pool.LocalHostSpecifies the Flash Media Server IP loopbac

Strany 234 - Log file precautions

XML configuration files 93MyZoneSpecifies the zone that the edge server belongs to when it broadcasts FPAD messages. NumCRThreadsSpecifies the number

Strany 235

94 Configuration FilesSocketOverflowBuckets Specifies the number of overflow buckets if all slots in socket table are in use.SocketTableSizeSpecifies

Strany 236 - 236 Index

XML configuration files 95Description of Server.xml tagsThe following alphabetical list of Server.xml tags contains additional information, including

Strany 237 - Index 237

96 Configuration FilesContained tagsMinIOThreads, MaxIOThreads, SocketOverflowBuckets, SocketTableSizeSee alsoACCP, Core, ECCP, Edge, HTTP, RTMP (Prot

Strany 238 - 238 Index

XML configuration files 97DescriptionThis tag is a comma-delimited list of zones that the sole origin server or the edge servers in a cluster will ser

Strany 239 - Index 239

98 Configuration FilesDescriptionThe tags nested within the AutoDiscovery container set up and configure a single, or a cluster of, edge or proxy serv

Strany 240 - 240 Index

XML configuration files 99DHCP is a protocol for assigning dynamic IP addresses to devices on a network. DHCP supports a mix of static and dynamic IP

Komentáře k této Příručce

Žádné komentáře