Home > Configuration > Policy > addpolicymap

addpolicymap

Use this method to creates a policy to map a publicly known domain name to a target domain name for a reverse proxy virtual server used by the cache redirection feature. Optionally, you can also specify a source and target URL. The map policy can be associated with a reverse proxy cache redirection virtual server by using the 'bind cr vserver' method. There can be only one default map policy for a domain.

Syntax



Parameters

mappolicyname

Name for the map policy. Must begin with a letter, number, or the underscore (_) character and must consist only of letters, numbers, and the hash (#), period (.), colon (:), space ( ), at (@), equals (=), hyphen (-), and underscore (_) characters. CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my map" or 'my map').
This is mandatory parameter.

sd

Publicly known source domain name. This is the domain name with which a client request arrives at a reverse proxy virtual server for cache redirection. If you specify a source domain, you must specify a target domain.
This is mandatory parameter.

su

Source URL. Specify all or part of the source URL, in the following format: /[[prefix] [*]] [.suffix].

td

Target domain name sent to the server. The source domain name is replaced with this domain name.

tu

Target URL. Specify the target URL in the following format: /[[prefix] [*]][.suffix].

Return Value

Returns simpleResult

See Also