Using $Path To Rewrite Paths In Javascript Methods Or Variables - Novell ACCESS MANAGER 3.1 SP2 - ACCESS GATEWAY GUIDE 2010 Manual

Access gateway guide
Hide thumbs Also See for ACCESS MANAGER 3.1 SP2 - ACCESS GATEWAY GUIDE 2010:
Table of Contents

Advertisement

ABC
BCDEF
If the original string is ABCDEFGH, the replaced string is XYZDEFGH.
If two specified search strings match the data portion, the search string of longer length is used
for the replacement except for the case detailed above. Suppose you have listed the following
search and replacement strings:
ABC
ABCDEF
If the original string is ABCDEFGH, the replaced string is PQRSTUVWXYZGH.

Using $path to Rewrite Paths in JavaScript Methods or Variables

You can use the $path token to rewrite paths on a path-based multi-homing service that has the
Remove Path on Fill option enabled. This token is useful for Web applications that require a
dedicated Web server and are therefore installed in the root directory of the Web server. If you
protect this type of application with Access Manager using a path-based multi-homing proxy
service, your clients access the application with a URL that contains a
service uses the path to determine which Web server a request is sent to, and the path must be
removed from the URL before sending the request to the Web server.
The application responds to the requests. If it uses JavaScript methods or variables to generate paths
to resources, these paths are sent to client without prepending the path for the proxy service. When
the client tries to access the resource specified by the Web server path, the proxy service cannot
locate the resource because the multi-homing path is missing. The figure below illustrates this flow
with the rewriter adding the multi-homing path in the reply.
Figure 1-9
<HTML>
<a href="../inner/prices/pricelist.html" class="ulink">
</HTML>
To make sure all the paths generated by JavaScript are rewritten, you must search the Web pages of
the application. You can then either list all the JavaScript methods and variables in the Additional
Names to Search for URL Strings to Rewrite with Host Name section of the rewriter profile, or you
can use the $path token in the Additional Strings to Replace section. The $path token reduces the
number of JavaScript methods and variables that you otherwise need to list individually.
To use the $path token, you add a search string and a replace string that uses the token. For example,
if the
/prices/pricelist.html
proxy service is
60
Novell Access Manager 3.1 SP2 Access Gateway Guide
to be replaced with
to be replaced with
to be replaced with
to be replaced with
Rewriting with a Multi-homing Path
Browsers
Request
HTML Page: Source
page is generated by JavaScript and the multi-homing path for the
, you would specify the following stings:
/inner
XYZ
PQRSTUVWXYZ
XYZ
PQRSTUVWXYZ
Firewall
Access
Gateway
novell.com
novell.com/inner
Reply
Rewriter
value. The proxy
/path
Web
Server
inner.com
<HTML>
<a href="../prices/pricelist.html" class="ulink">
</HTML>
HTML Page: Source

Advertisement

Table of Contents
loading

Table of Contents