Using Namespace Match Uri Regex; Using Namespace Match <Criteria> Precedence; Table 9 Example Namespace Match Uri Regex Entries - Juniper MEDIA FLOW CONTROLLER 2.0.4 - ADMINISTRATOR S GUIDE AND CLI Administrator's Manual

Administrator’s guide and cli command reference
Table of Contents

Advertisement

Media Flow Controller Configuration Tasks (CLI)

Using namespace match uri regex

This section provides some examples of namespace match uri regex use. Change specifics
accordingly.
single quotes (not shown in examples). See
For namespace match uri <uri-prefix>, the regex is written against the absolute path portion
of the URL. For example, given the following URL: http://abc.com:8080/index.html,
/index.html would be the absolute path portion of the URI.
Table 9
Example namespace match uri regex entries
'\/A\/b\/c\/d\/index\.html'
'\/A\/b\/c\/d\/index\..*'
'\/A\/b\/.*\/d\/index\..*'
Using namespace match <criteria> precedence
Use namespace <name> match <criteria> precedence to set unambiguous mapping of
incoming GET requests in the case of match <criteria> overlap; precedence can be set on
all match <criteria>. The lower the number, the higher the preference for that namespace;
values 0 (highest precedence) - 10 (lowest precedence) can be used. All namespaces have a
default precedence of 0. For example, consider three URLs and namespaces as follows:
1. http://a.com/abc/def/file1.flv
2. http://a.com/abc/file2.flv
3. http://a.com/pqr/file3.flv
namespace ns1
domain a.com
match uri
origin-server http o1.com
status active
namespace ns2
domain a.com
match uri
origin-server http o2.com
status active
namespace ns3
domain a.com
match uri
origin-server http o3.com
status active
All three URLs match namespace ns3 set domain (a.com) and match uri / (slash). In order to
ensure that match uri #1 (/abc/def) maps to ns1 and not ns3, set the precedence value.
84
Creating a Namespace and Setting Namespace Options (CLI)
Note!
Regex entries do not contain spaces; also, enclose all regex entries in
Regex
/abc/def
precedence 1
/abc
precedence 2
/
precedence 3
Media Flow Controller Administrator's Guide
Table
9.
/A/b/c/d/index.html
/A/b/c/d/index.html
/A/b/c/d/index.html
/A/b/x/d/index.html
/A/b/xx/d/index.html
/A/b/abc/d/index.html
Copyright © 2010, Juniper Networks, Inc.
Matches

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MEDIA FLOW CONTROLLER 2.0.4 - ADMINISTRATOR S GUIDE AND CLI and is the answer not in the manual?

This manual is also suitable for:

Media flow controller 2.0.4

Table of Contents