Oracle iPlanet Web Proxy Server 4.0.14 Configuration File Reference

reverse-map

Applicable in NameTrans-class directives.

The reverse-map function is used to rewrite HTTP response headers when the proxy server is functioning as a reverse proxy. reverse-map looks for the URL prefix specified by the from parameter in certain response headers. If the from prefix matches the beginning of the response header value, reverse-map replaces the matching portion with the to prefix.

Parameters

The following table describes parameters for the reverse-map function.

Table 5–51 reverse-map parameters

Parameter  

Description  

from

URL prefix to be rewritten. 

to

URL prefix that will be substituted in place of the from prefix. 

rewrite-location

(Optional) Boolean that indicates whether the Location HTTP response header should be rewritten. The default is true, meaning the Location header is rewritten.

rewrite-content-location

(Optional) Boolean that indicates whether the content-location HTTP response header should be rewritten. The default is true, meaning the Content-location header is rewritten.

rewrite-headername

(Optional) Boolean that indicates whether the headername HTTP response header should be rewritten, where headername is a user-defined header name. With the exception of the Location and Content-location headers, the default is false, meaning the headername header is not rewritten.

rewrite-set-cookie

Takes a boolean value and is set to true by default. Enables or disables cookie rewriting, which involves rewriting the domain and path parameters of the set-cookie headers.

cookiepath-from

Specifies the target value of the path parameter.

cookiepath-to

If the value of the path parameter matches the value of cookiepath-from, it will be rewritten to the value of cookiepath-to.