Network Deployment (Distributed operating systems), v8.0 > Set up intermediary services > Set up the proxy server
Administer proxy rule expressions
We can administer proxy rule expressions to make proxy actions more granular in scope. Proxy rule expressions are configurations assigned to a proxy virtual host.
A proxy rule expression consists of operands and operators that are defined by an administrator. When an expression evaluates to true, the proxy action rules associated with that proxy rule expression are performed.
Complete these steps to create a new proxy rule expression or to administer an existing proxy rule expression.
Procedure
- From the admin console, select Servers > Server Types > WebSphere proxy servers > proxy_server_name
> Proxy Virtual Host Configuration > Proxy rule expressions.
- Click New to create a new proxy rule expression.
To administer an existing proxy rule expression, Click rule_expression_name.
- Specify the name for the rule expression.
- Click Subexpression builder to add an expression. We can also create the expression by entering the expression manually. The Subexpression builder is only designed to generate a subset of the available options when creating an expression. For example the Subexpression builder does not allow the usage of parenthesis in an expression. If a complex expression is needed, then type the expression into the field instead of using the Subexpression builder. For some examples of valid expressions, see Proxy rule expressions.
To use the Subexpression builder to create your expression, repeat these steps for each subexpression to create.
- From the Logical operator menu, choose a logical operator. If this the first subexpression in this field, then the logical operator will be removed when it is generated.
- From the Select operand menu, choose an operand.
- From the Operator menu, choose an operator.
- From the Select <operand_name> menu, choose the name of the operand to be used. The name and available selections for this menu is dependant on the operand specified in step b. For example, if you selected cell in step b, then the name of this menu will Select cell and the menu will list the available cells as menu options.
- Click Generate subexpression to add the new expression to the Subexpressions list.
- Click OK.
- Enable a proxy action for the proxy rule expression. We can enable multiple proxy actions. All the enabled proxy actions will be performed when the proxy rule expression evaluates to true.
- Optional: If the a proxy action needs to be modified, select that proxy action, and click Edit.
- Optional: Move a proxy action up or down in the list to change the order in which the proxy actions will be performed. If the sequence the proxy actions are performed is important for the rules you specified, ensure that the order of the proxy actions in the list corresponds to the order they must be performed.
- Click OK.
Related
Proxy rule expressions
Proxy rule expressions collection
Proxy rule expression settings
Set up the proxy server