Defining context paths

Context paths inform the Web server which requests are directed to the redirector. In the obj.conf file, search for this line:

<Object name=default>

Immediately after this line, add the lines that define the context paths. For example, if you have two Web applications named “ws_test” and “examples,” the lines that direct requests of the form http://host-name/examples/* and http://host-name/ws_test/* to the redirector are:

NameTrans fn="assign-name" from="/ws_test/*" name="EASProxy"
NameTrans fn="assign-name" from="/examples/*" name="EASProxy"

Figure 4-3 illustrates how a client request for examples/test.jsp and examples/images/welcome.gif to the Web server and port Web1:8020 are redirected to jag1:8080.

Figure 4-3: “examples” requests are redirected to EAServer