Streaming Media Supplement sa2150 and sa2250

86
Chapter 8 Configuring Media-IXT for WMT
Next, the mms map rule:
map mms://10.10.10.10:1755/ mms://source.pix.com:1755/
The mms map
rule can alternatively be in this form:
map mms://10.10.10.10:1755/ mms://11.11.11.11:1755/
The
reverse_map rules (naturally) reverse the terms of the
map
rules:
reverse_map http://relay.pix.com/ http://www.pix.com/
reverse_map mms://11.11.11.11:1755/ mms://10.10.10.10:1755/
reverse_map mms://source.pix.com:1755/ mms://www.pix.com:1755/
The last mms reverse_map rule can alternatively be in this form:
reverse_map mms://source.pix.com:1755/ mms://10.10.10.10:1755/
3. After you modify remap.config, tell Media-IXT to re-read the file. From Media-IXT’s bin directory,
run the command:
traffic_line -x
Once our example systems are configured, we can also discuss what modifications would be necessary to
accommodate changes in the deployment.
Example
Let's say that we want to perform reverse proxy caching for a website called www.pix.com, which already
existed before we brought in Media-IXT. We have:
a Media-IXT host, whose IP address is 10.10.10.10
an HTTP server which contains the .html pages that make up the website
a Windows Media server where our actual Windows Media streaming content resides in the form of .asf
files; its IP address is 11.11.11.11, and it answers to source.pix.com
The .html pages on the HTTP server contain links to several
.asx
files, each of which corresponds to a .asf
file that resides on the Windows Media server.
If we followed accepted practice in setting up the site originally, each .html file which resides on the HTTP
server points to the www.pix.com
,
not to the IP address of that host. This is important because we are about
to configure a different host to answer to www.pix.com
.
Before we brought in Media-IXT, our HTTP server answered to www.pix.com
.
Now, our first step is to
configure Media-IXT to answer to www.pix.com, and to reconfigure the HTTP server so that it no longer
answers to that URL. Our reconfigured HTTP server answers to relay.pix.com. For purposes of our
example, the IP address of our HTTP server is unimportant. Remember that besides insuring that the actual
systems have the proper hostnames and IP addresses, we must insure that DNS resolves the advertised name of
the website to Media-IXT’s IP address–otherwise our configuration will fail completely.
We also set the proxy.config.reverse_proxy.enabled variable in the records.config file on
the Media-IXT host to true.
Next, we edit the remap.config file on Media-IXT, adding
map
and reverse_map
rules. Note that the
trailing slashes in all of the rules are required.
How should the map rules look?
First, the two HTTP map rules:
map http://10.10.10.10/ http://relay.pix.com/
map http://www.pix.com/ http://relay.pix.com/
Though very similar, the two HTTP map rules above are both necessary, because we don’t know whether a
client will address its HTTP request to the hostname or to the IP address of our website.