Installation guide
CHAPTER 4 Installing and Configuring a Web Server Redirector Plug-In
Installation Guide 45
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
Adding the EASProxy object
At the end of the obj.conf file, add the lines that add the EASProxy object and
specify which HTTP methods are forwarded to the redirector:
<Object name=EASProxy>
ObjectType fn="force-type" type="text/plain"
Service method="(GET|HEAD|POST)" fn="conn_service"
</Object>