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.
NameTrans fn=host-map url-prefix="destination url prefix"
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://" |