
Chapter 7: bigpipe Command Reference
7-38
If the rule is defined on the bigpipe command line, you can either surround
each pair of parentheses in single quotation marks (’), or place a pair of
single quotation marks around the braces. These two methods of defining a
rule on the command line are shown as follows:
b rule <name> if '{ <if_stmt> | <use_stmt> | <discard_stmt> |
<redirect_stmt> | <cache> }'
Or, you can type the same rule using the following syntax:
b rule <name> if { '(<if_stmt>)' | '(<use_stmt>)' |
'(<discard_stmt>)' | '(<redirect>)' | '(<cache>)' }
For example:
b rule simply_red { if '(client_addr == 10.12.12.10)' { use
'(pool_A80)' } }
b rule simply_redder '{ if (client_addr == 10.12.12.10) { use
(pool_B80) } }'
Associating a rule with virtual server
Associate a rule with a virtual server using the following format:
bigpipe virtual 10.20.2.101:http use rule cgi_rule
Delete a rule
Delete a rule using the following format:
bigpipe rule cgi_rule delete
Display rules
Display all rules using the following syntax:
bigpipe rule show
Or to display a specific rule:
bigpipe rule <rule name> show
Comentarios a estos manuales