
Using Responders in Match Rules
Responders are used to send automated responses to clients when all the server pools in a match rule are down.
See "Automatic Cluster Responders" on page 347 for a complete description of Responders as well as examples
of using Responders in Match Rules.
Example Match Rules
The Related Topics navigate to examples of how to create a few of the most commonly used types of match rules.
Parsing the URI Using Match Rules
In this example, we want to direct requests to a pool of specific server pools based on the hostname used in the
URI contained in the request. We want all requests for URIs that start with “support” to go to one server pool, and
all other requests that do
not
match this rule to be load balanced across all server pools in the cluster.
To do this, we will construct one match rule that parses the URI; if the URI contains the string “support”, it
forwards the request to the server pool sv_support. For this example, we assume that a cluster with server pools
has already been defined.
1. Log into the GUI using a login that has add/del access for the cluster.
2. In the left frame, right-click the name of the Layer 7 cluster to which you want to add the rule, and select
Add Match Rule. The Add Match Rule dialog appears:
a. Type a name into the Match Rule Name field. In this case New Match Rule was added.
b. Select the Next Match Rule from the drop-down list to determine the placement of New
Match Rule in the order of processing. In this case test was selected.
c. Click on Commit. If test was selected as the Next Match Rule it will appear beneath Test in
the navigation pane on the left.
The match rule is created, added to the navigation pane on the left, and its Configuration tab is opened. Refer to
"Using the Match Rule Expression Editor" on page 344 for further descriptions on using the Expression Editor.
3. Click on the Expression Editor button and drag and drop host_prefix from the drop-down box in the
Functions pane into the Expression Workbench pane.
Copyright © 2013 Coyote Point Systems. A subsidiary of Fortinet, Inc.
All Rights Reserved.
337
Equalizer Administration Guide
Comentarios a estos manuales