Appendix D
Example
The following section shows example mapping rules in the
Reverse proxy mapping rules
The following example shows a map rule that does not specify a path prefix in the target or replacement:
map http://www.x.com/ http://server.hoster.com
This rule results in the following translations:
Client Request
http://www.x.com/Widgets/index.html
http://www.x.com/cgi/form/submit.sh?arg=true
The following example shows a map rule with path prefixes specified in the target:
map http://intranet.y.com/marketing http://marketing.y.com/
map http://intranet.y.com/sales http://sales.y.com
map http://intranet.y.com/engineering http://engineering.y.com/
map http://intranet.y.com/ http://info.y.com/
These rules result in the following translations:
Client Request
http://www.y.com/marketing/projects/manhattan/
specs.html
http://www.y.com/stuff/marketing/projects/boston/
specs.html
http://www.y.com/engineering/marketing/
requirements.html
The following example shows that the order of the rules matters:
map http://www.g.com/ http://external.g.com/
map http://www.g.com/stuff http://stuff.g.com
The above rules result in the following translation:
Client Request
http://www.g.com/stuff/a.gif
In the above examples, the second rule is never applied because all URLs that match the second rule also match
the first rule. The first rule takes precedence because it appears earlier in the
The following example shows a mapping with a path prefix specified in the target and replacement:
map http://www.h.com/a/b http://server.h.com/customers/x/y
This rule results in the following translation:
Client Request
http://www.h.com/a/b/c/d/doc.html
http://www.h.com/a/index.html
file.
remap.config
Translated Request
http://server.hoster.com/Widgets/index.html
http://server.hoster.com/cgi/form/submit.sh?arg=true
Translated Request
http://marketing.y.com/projects/manhattan/
specs.html
http://info.y.com/marketing/projects/boston/
specs.html
http://engineering.y.com/marketing/
requirements.html
Translated Request
http://external.g.com/stuff/a.gifl
remap.config
Translated Request
http://server.h.com/customers/x/y/c/d/doc.html
Translation fails
Configuration Files
file.
213
Need help?
Do you have a question about the P4535A - Web Cache Server Appliance and is the answer not in the manual?
Questions and answers