Defining context paths

Context paths inform the Web server which requests are directed to the redirector. At the end of the httpd.conf file, 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:

<LocationMatch /examples/* | /ws_test/* >
SetHandler eas-handler
</LocationMatch>

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

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