![Juniper MEDIA FLOW CONTROLLER 2.0.4 - Administrator'S Manual Download Page 84](http://html1.mh-extra.com/html/juniper/media-flow-controller-2-0-4/media-flow-controller-2-0-4_administrators-manual_2032854084.webp)
Media Flow Controller Configuration Tasks (CLI)
Media Flow Controller Administrator’s Guide
84
Creating a Namespace and Setting Namespace Options (CLI)
Copyright © 2010, Juniper Networks, Inc.
Using namespace match uri regex
This section provides some examples of namespace match uri regex use. Change specifics
accordingly.
Note!
Regex entries do not contain spaces; also, enclose all regex entries in
single quotes (not shown in examples). See
Table 9
.
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.
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 /abc/def
precedence 1
origin-server http o1.com
status active
namespace ns2
domain a.com
match uri /abc
precedence 2
origin-server http o2.com
status active
namespace ns3
domain a.com
match uri /
precedence 3
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.
Table 9
Example namespace match uri regex entries
Regex
Matches
'\/A\/b\/c\/d\/index\.html'
/A/b/c/d/index.html
'\/A\/b\/c\/d\/index\..*'
/A/b/c/d/index.html
/A/b/c/d/index.html
'\/A\/b\/.*\/d\/index\..*'
/A/b/x/d/index.html
/A/b/xx/d/index.html
/A/b/abc/d/index.html
Summary of Contents for MEDIA FLOW CONTROLLER 2.0.4 -
Page 6: ...Media Flow Controller Administrator s Guide VI Copyright 2010 Juniper Networks Inc...
Page 24: ...LIST OF FIGURES XXIV Copyright 2010 Juniper Networks Inc...
Page 37: ...Copyright 2010 Juniper Networks Inc 37 PART 1 Media Flow Controller Administration...
Page 38: ...Media Flow Controller Administrator s Guide 38 Copyright 2010 Juniper Networks Inc...
Page 285: ...Copyright 2010 Juniper Networks Inc 285 PART 2 Media Flow Controller Command and MIB Reference...
Page 286: ...Media Flow Controller Administrator s Guide 286 Copyright 2010 Juniper Networks Inc...