Blue Coat Systems Proxy SG Manual De Usuario

Descargar
Página de 314
ProxySG Content Policy Language Guide
258
define server_url.domain condition
Binds a user-defined label to a set of domain-suffix patterns for use in a 
condition=
 expression. Using 
this definition block allows you to quickly test a large set of 
server_url.domain=
 conditions. 
Although the 
define condition
 definition block could be used in a similar way to encapsulate a set 
of domain suffix patterns, this specialized definition block provides a substantial performance boost.
The manner in which the URL patterns and any condition expressions are listed is significant. Each 
line begins with a URL pattern and, optionally, one or more condition expressions, all of which have a 
Boolean AND relationship. Each line inside the definition block is considered to have a Boolean OR 
relationship with other lines in the block.
For more information about choosing the best way to test a request URL, see “Denying Access to 
URLs” in Chapter 9 of the Configuration and Management Guide.
Note:
This condition is for use in the 
<Forward>
 layers and takes into account the effect of any 
rewrite( )
 actions on the URL. Because any rewrites of the URL intended for servers or 
other upstream devices must be respected by 
<Forward>
 layer policy, conditions that test the 
unrewritten URL are not allowed in
 <Forward>
 layers. Instead, this condition is provided.
Syntax
define server_url.domain condition label
domain_suffix_pattern [condition_expression ...]
...
end [server_url.domain condition label]
where:
label
—A user-defined identifier for a domain condition definition. Used in a condition= 
condition.
domain_suffix_pattern
—A URL pattern that includes a domain name (domain), as a 
minimum. See the 
url=
 condition reference for a complete description. 
condition_expression
 ...—An optional condition expression, using any of the conditions 
available in a rule, that are allowed in a 
<Forward>
The 
condition=
 condition is one of the expressions that can be included in the body of a 
define 
server_url.domain condition
 definition block, following a URL pattern. In this way, one 
server_url.domain
 definition block can call another condition-related definition block, so that they 
are in effect nested. See the example in the 
define condition
 definition block topic. Any referenced 
condition must be valid in a 
<Forward>
 layer.
Layer and Transaction Notes
Use  in 
<Forward>
 layers.
Applies to all transactions.
Example
define server_url.domain condition allowed
 inventory.example.com