Applicable in NameTrans-class directives.
The regexp-map is similar to the map function. While the map function looks for an exact match of a URL prefix, regexp-map allows a regular expression match.
The following table describes parameters for the regexp-map function.
Table 5–50 regexp-map parameters
Parameter |
Description |
---|---|
from |
A regular expression for the prefix to be mapped to the mirror site. |
to |
The mirror site prefix. |
name |
(Optional) A named object from which to derive the configuration for the mirror site. |
rewrite-host |
(Optional) Indicates whether the Host HTTP request header is rewritten to match the host specified by the parameter. In a reverse proxy configuration where the proxy server and origin server service the same set of virtual servers, you may wish to specify rewrite-host="false". The default is "true", meaning that the Host HTTP request header is rewritten. |