Sun Java System Web Proxy Server 4.0.3 2006Q2 Configuration File Reference

host-map

Applicable in NameTrans-class directives.

The host-map function is used to map a URI to a URL based on the value of the "host:" header, when the proxy is functioning as a reverse proxy. While a map function depends on an explicitly specified "to" argument, host-map uses the value of "host:" header to generate the destination URL.

Syntax

NameTrans fn=host-map url-prefix="destination url prefix"

Parameters

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

Table 5–37 host-map parameters

Parameter  

Description  

url-prefix

(optional) the prefix to be used for the destination URL. 

Example


NameTrans fn="host-map" url-prefix="http://"