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

regexp-map

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.

Parameters

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

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 to 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.