Streaming Media Supplement sa2150 and sa2250
72
Chapter 7 Configuring Media-IXT for RealNetworks
Modifying the
filter.config file to determine proxyability
To add a new rule to filter.config, you need exactly one primary specifier, may add one or more
secondary specifier, and must choose one of two possible actions.
The primary specifier
The primary specifier must be one of the following:
• dest_domain, meaning domain suffix of sites.
Example: where the desired domain suffix of sites is inktomi.com, the rule appears in
filter.config
like this:
dest_domain=inktomi.com
• dest_host, meaning fully qualified domain name of host.
Example: where the desired hostname is tsdev.inktomi.com, the rule appears in filter.config
like this:
dest_host=tsdev.inktomi.com
• url_regex, meaning a regular expression, which can appear anywhere in the URL (in other words, the
expression
video
will match with the URL rtsp://g2.real.com/g2video.rm).
Example: where the desired regular expression is video
,
the rule appears in filter.config like this:
url_regex=video
For url_regex, note that / is a special control character. Use a backslash (\) to escape this, and some other
special control characters. For example, if you want to match the pattern cars/mustang, your rule would be:
url_regex=cars\/mustang
For details, check a book or web site that discusses regular expressions. At this writing, one such site is:
http://etext.lib.virginia.edu/helpsheets/regex.html
For selective caching and filtering rules for RealNetworks that use url_regex, include the port number. For
example, if you are filtering requests for a clip called clip.rm at bad.content.com, the correct rule to
use would be this:
url_regex=bad.content.com:554\/clip.rm action=deny
Secondary specifiers
Besides the single primary specifier, one or more secondary specifiers may also be added:
• port, meaning port on the origin server. Example:
port=8080
• scheme, meaning the protocol in use. Example:
scheme=rtsp
• prefix, meaning a prefix in the path part of a URL. Example:
prefix=/someclips
• method, meaning a URL request method. Possible values:
get, post, put, trace
•
time
, meaning a time range. Example:
08:00-14:00