MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manuale Utente Pagina 14

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 60
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 13
Chapter 214
You can specify the directory you want to use to store your client application directories by
editing the
<AppsDir> tag in the Vhost.xml file. By changing the path specified in this tag, you
can locate the directory for the virtual host anywhere you want. If no directory is specified, it
defaults to the virtual host directory itself.
To edit the <AppsDir> tag in the Vhost.xml file:
1 Locate the Vhost.xml file for the virtual host you are working with.
2 Open the file in a text editor.
3 Replace the path inside the <AppsDir> tag with the path of your choice, such as C:\Server
Files\applications. Do not use quotation marks. To specify multiple directories, delimit each
directory path with a semicolon.
4 Save the Vhost.xml file.
You must restart the server in order for this change to take effect.
Once you have specified the directory where you’ll store your application directories, you must
create a directory inside it for each client application you plan to use with that virtual host. Each
client application must have a directory with the same name that the client application uses when
connecting to the server. Once you have created a subdirectory for each of your applications, you
can decide whether to give any of the applications their own Application.xml file. By including an
Application.xml file in a client applications directory, you can give that application different
settings from those defined in the virtual host’s Application.xml file, which serve as the default
settings for applications on the virtual host. For more information about the Application.xml file,
see Chapter 3, “Configuring Flash Communication Server,” on page 27.
Configuring virtual hosts
With some editions of the server, you can add virtual hosts to the server’s configuration. This is
useful for separating sets of applications and allows you to define administrators who have access
only to a specific virtual host. It is also useful if you are an Internet service provider who is hosting
websites using Flash Communication Server.
Each virtual host on the server is associated with an adaptor.
To create a new virtual host, create a new virtual host directory inside the /conf/adaptor_name
directory in the Flash Communication Server directory, for the adaptor you want to use for the
new virtual host:
/conf/adaptor_name/virtual_host_name. This directory must include the following items:
A Vhost.xml file
An Application.xml file
You also need to add the new virtual host to the Server.xml file and add administrative users for
that virtual host.
Deploying server-side scripts
In developing applications for Flash Communication Server, you may decide to use server-side
scripts to implement some of the functionality. To deploy server-side scripts, you can store them
in your registered application directory for the application that uses them or in a scripts directory
(which you create) within your application directory. Server-side scripts should always reside on
the computer where Flash Communication Server is installed.
Vedere la pagina 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 ... 59 60

Commenti su questo manuale

Nessun commento