Description
Changes the value of the specified configuration key in a specified configuration file. Flash
Media Server has six server configuration files: Server.xml, Users.xml, Logger.xml,
Adaptor.xml, Vhost.xml, and Application.xml.
Virtual host administrators can change the values of configuration keys in the Vhost.xml file
and Application.xml files for their own virtual hosts.
You must be a server administrator to change the values of most configuration keys in the
Server.xml and Adaptor.xml files.
For a description of the XML configuration files, see Managing Flash Media Server.
It is possible to have more than one XML tag with the same name at the same level in the
XML tree. In the configuration file, you should distinguish such tags by using a name
attribute in the XML tag (for example, if you have more than one virtual host:
<VirtualHost name="www.redpin.com"></VirtualHost>
command and specify the configuration subkeys, you can indicate which tag you want
by specifying the tag name, followed by a colon and the correct name attribute, for
example:
Adaptor:_defaultRoot_/VirtualHost:www.redpin.com.
Examples
The following examples show how to set new values for configuration keys:
tSocket = new NetConnection();
tSocket.connect("rtmp://localhost/admin", "user", "password");
// set tag data in Server.xml
key = "Server/LicenseInfo";
val = "SFD150-XXXXX-XXXXX-XXXXX";
tSocket.call("setConfig2", new onSetConfig(), key, val, "/");
// set tag data in Adaptor.xml
key = "HostPortList/HostPort";
val = ":1935, 80, 443";
scope = "Adaptor:_defaultRoot_";
tSocket.call("setConfig2", new onSetConfig(), key, val, scope);
// set tag data in Vhost.xml
key = "AppsDir";
val = "c:\\applications";
scope = "Adaptor:_defaultRoot_/VHost:_defaultVHost_";
tSocket.call("setConfig2", new onSetConfig(), key, val, scope);
// set tag data in Application.xml for app "foo"
key = "Process/Scope";
val = "inst";
scope = "Adaptor:_defaultRoot_/VHost:_defaultVHost_/App:foo";
tSocket.call("setConfig2", new onSetConfig(), key, val, scope);
.) When you call the
setConfig
setConfig2()
67
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE and is the answer not in the manual?