The example file proxyrules_example7.xml file routes SPS requests based on nete:xprcond elements that contain regular expressions. Regular expressions are evaluated based on the URI and query string of a request.
In the file, the URI and query string of the request are evaluated against the three regular expressions defined in the nete:xpr elements. If a match is not found against the first nete:xpr element, the SPS tries to match it against the second, and finally the third regular expression. If no matches are found, the nete:xpr-default condition is used to handle the request.
The following table lists the results of requests using the regular expression proxy rules.
Requested URL |
Forwarded URL |
---|---|
http://server.company.com/realma/hr/index.html |
http://server1.company.com/hr/index.html |
http://server.company.com/GOTO=server2.company.com/index.html |
http://server2.company.com/index.html |
http://server.company.com/REDIR=server2.company.com/index.html |
http://server2.company.com/index.html User is redirected so that |
http://server.company.com/index.html |
http://www.company.com/index.html |
Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |