Business support

Adding a match rule to a configuration

Match rules provide the criteria for evaluating requests and responses and, when matched, specify one or more actions (e.g., setting cache expiration, calling geo definitions, content/header processing modes, etc.) for the system to take. Once a match rule criteria is matched, the system stops checking. In other words, the first match wins.

Get help opening a configuration

  1. From an open configuration, click Edit Configuration.
  1. From the Properties list, select the property you want to add a match rule to.

    Media portal displays the information for the property.
  1. Click Add Match Rule.
  1. In the Match Rule Criteria field, type the path you want the CDN to look for when evaluating incoming requests.

Note: At this time, the only supported expression is the requested path/received URI without query strings.  Note that the path may be expressed using the following operators:

==  Equality test
%= Equality test (case insensitive)
*=   Glob test
%*  Glob test (case insensitive)

Any operator may be inverted by prepending an “!” (not).

  1. If you want the CDN to look for matches exactly the way you typed the path, select the Case Sensitive check box.
  1. From the Add Setting list, choose the type of directive you want to use if an incoming request matches the path you typed. Use the sections below to learn more about how to add each type of directive.

Adding a secure-fill directive

Adding a Lua-scripting directive

Adding a deny-policy directive

Adding a cache-control directive

Adding a query-string handling directive

Adding a token-authentication directive

Adding a geo-blocking directive

Adding an IP-blocking directive

Adding a request-headers directive

Adding a response-headers directive

       7.  Repeat step 6 to add additional match rules.

       8.  If you need to edit or add other definitions or properties, continue editing the
             configuration without saving. (Saving the configuration creates a new version.)
             When you're done editing the configuration, continue with step 9.

       9.  Click Save (above the Service-Wide Definition section). You can also click Save As
              to save the configuration under a new name.

    10.  If needed, add any notes to describe the changes you made.

    11.  Click Save again.

            Media portal saves the configuration.