
Match Rules
4. Type “support” into the hostname prefix text box as follows:
5. Click on accept after entering “support” and then click on the continue button at the bottom of the
Expression Editor to save the expression.
Now, all requests for URIs that start with “support” should go to the sv_support server pool, and all other
requests that do
not
match this rule to be load balanced across all server pools in the cluster.
Changing Persistence Settings Using Match Rules
By default, a client request that matches a match rule expression is load balanced using the same load balancing
parameters and options that are currently set on the cluster. The following describes how to change load balancing
parameters and flags in a match rule.
For example, persistent connections to server pools are enabled by the Persist cluster flag, which is enabled by
default when you create a cluster. Let’s assume that you only want to
disable
persistence for incoming requests
that have a URI containing a hostname in the following format:
xxx.testdonotpersistexample.com
We’ll use the host_suffix() match rule function to test for the above hostname format. For this example, we
assume that a cluster with three server pools has already been defined. We will construct a match rule that will
turn off Persist for any request that contains the host suffix “testdonotpersistexample.com”; this request will be
balanced across all of the server pools in the cluster.
1. Log into the GUI using a login that has add/del access for the cluster.
2. In the navigation pane on the left, 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 nopersist into the match name text box.
338
Copyright © 2013 Coyote Point Systems. A subsidiary of Fortinet, Inc.
Comentarios a estos manuales