CHAPTER 5 CLI Commands
Media Flow Manager Administrator’s Guide
134
service-director
Copyright © 2010, Juniper Networks, Inc.
cache-response age <seconds>
hash-verify share-secret <string> time-interval deviation <seconds>
match {city | continent | country | isp | state | zip | default}
host-response {<hostname>|<IP_address>} [<hostname>|<IP_address>]...
xml-response {<hostname> | <IP_address>]
xml-response <name> <http-url>
Notes:
•
crossdomain
—Configure the crossdomain.xml file that has to be returned to flash
players. There are two configuration options:
•
domain
—Enter up to four domain names to be used to auto generate the
crossdomain.xml
in the document root directory.
•
xml-response
—Give the name configured under
xml-response name
(below).
•
query-url-host
—This defines the hostname of the incoming query. For example, if a
query issued by a player is
http://www.geosvc.example.com/svc/geo/uk-xml-map.xml
,
the
query-url-host
is
geosvc.example.com
. Once the query is matched with the right
hostname, the IP address is matched to one (and only one of)
country
,
state
,
city
,
zip
, or
ISP
specified by the
match
"entity" value and a response (either configured
host-
response
or
xml-response
) is sent. More than one
query-url-host
can be configured to
allow different types of response-to-IP address depending on which Geo-Load Balancing
server in the system is being hit.
Note!
Under
query-url-host
, mapping is done in the
order in which the hosts are added; as soon as Service Director finds a matching entity, it
takes it, so you want to enter the most specific entities first. For example if you configure
"Country USA" as the first entry followed by "City Santa Clara" then all the IP addresses
from USA are mapped *only* to the entry "Country USA" and Service Director never sees
any entities entered after.
•
activate
—Make this host active.
•
cache-response age
—Allows the Service Director to set a maximum age in the
HTTP response it sends, to allow the browser to cache. The default value is 1 day
(86400 seconds). A value of 0 indicates that the response should be made non-
cacheable.
•
hash-verify
—Hash verification of incoming URL is optional. If enabled you must
configure a
share-secret
, and, optionally, a
time-interval deviation
.
•
shared-secret {append | prefix}
—Enter a secret key that is then
appended or prefixed (as specified) to the URI, to calculate the hash which is then
"matched" with the
match query-string-parm
hash value.
•
time-interval deviation
—Enter a value in seconds after which requests are
not accepted. Used to avoid denial-of-service hijacks repeatedly sending the
same request over and over. Default is
10
seconds.
•
match
—Enter location option (
isp
,
zip
,
city
,
state
,
country
,
continent
) or
default
and a
response
value.
•
host-response
—Enter up to three domain names or IP addresses to be used to
auto generate the crossdomain.xml
in the document root directory.
•
xml-response
—Give the name configured under
xml-response name
(below).
•
xml-response <name> <http-url>
—A configured XML file (format given below)
located at an external server; the configured file
<name>
and
<http-url>
allow the file to
be extracted from a server, this file should be installed in the document root directory.
Содержание MEDIA FLOW MANAGER 2.0.2 - ADMINISTRATOR S GUIDE AND CLI
Страница 6: ...Media Flow Manager Administrator s Guide VI Copyright 2010 Juniper Networks Inc...
Страница 12: ...TABLE OF CONTENTS Media Flow Manager Administrator s Guide XII Copyright 2010 Juniper Networks Inc...
Страница 16: ...LIST OF FIGURES XVI Copyright 2010 Juniper Networks Inc...
Страница 152: ...CHAPTER 5 CLI Commands Media Flow Manager Administrator s Guide 152 write Copyright 2010 Juniper Networks Inc...