The example file proxyrules_example3.xml file routes SPS requests based on the type of device used to access the resource.
Note: The user-agent HTTP header value is used to determine how to route requests.
In the file, users who access resources using a browser (user agent contains Mozilla for Web browsers) are forwarded to a Web server, while all other users are forwarded to a wireless server.
The following table illustrates the results of requests using the proxy rules based on a device type.
|
Requested URL |
Forwarded URL |
|---|---|
|
http://www.company.com/index.html User access resource via a Web browser. |
http://home.company.com/index.html |
|
http://www.company.com/index.wml User access resource via a wireless device. |
http://wireless.company.com/index.wml |
| Copyright © 2012 CA. All rights reserved. |
|