MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Dokumentacja Strona 60

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 369
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 59
Configuring Flash Communication Server 39
<HostPort> specifies the IP address and one or more port numbers for the adaptor to bind to.
The IP address and port number are separated by a colon. If you specify more than one port,
separate them with commas.
For example, a
<HostPort> tag might look like this:
<HostPort>12.34.56.78:1935, 80, 443</HostPort>
You can set up the adaptor to listen on more than one IP address by specifying more than one
<HostPort> tag.
Flash Communication Server uses port number 1935 by default. You may choose to use
another port, such as port 80 (normally reserved for HTTP) or port 443 (normally reserved for
HTTPS) if your firewall restricts access to other ports. Whichever port you use, be sure it is set
to the “open” state. When you change the port number, you must also change it in the client
applications ActionScript
NetConnection call.
As a security precaution, when you specify an IP address in the
<HostPort> tag, the server will
not bind to (listen to) localhost. (The term localhost refers to the computer the server is
running on.) If you do not specify an address, the server will bind to both localhost and the
true IP address of the computer it is running on.
<Allow>, <Deny>, and <Order> serve the same purposes as in the Server.xml file, but indicate
permissions specifically for this adaptor.
The following set of Adaptor.xml tags has been customized for real-world use. Up to five threads
can be created for the adaptor. The adaptor will bind to ports 1935 and 80 and will accept
connections from any IP address.
<Adaptor>
<ResourceLimits>
<MaxThreads>5</MaxThreads>
</ResourceLimits>
<HostPortList>
<HostPort>:1935, 80</HostPort>
</HostPortList>
<Allow>all</Allow>
<Deny></Deny>
<Order>Deny,Allow</Order>
</Adaptor>
The Vhost.xml file
The Vhost.xml file configures a virtual host within an adaptor. Each virtual host must have its
own directory inside the adaptor directory.
The name of the directory must be the actual name of the virtual host, such as
streaming.macromedia.com. Each virtual host you define must map to a DNS entry that specifies
an IP address on the server computer.
Each adaptor must contain a _defaultVHost_ directory in addition to the custom virtual hosts
that you define. If a client application tries to connect to a virtual host that does not exist, the
server attempts to connect it to _defaultVHost_.
Each virtual host directory contains a Vhost.xml file. This file contains tags that define the
settings for the virtual host. These settings include aliases for the virtual host, the location of the
virtual host’s application directory, limits on the resources the virtual host can use and other
parameters.
Przeglądanie stron 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 368 369

Komentarze do niniejszej Instrukcji

Brak uwag