Sun Java System Web Proxy Server 4.0.5 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–45 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.