Match Rules
To do this, we’ll create two match rules, as follows:
1. Log into the GUI using a login that has add/del access for the cluster.
2. In the navigation pane on the left, click the name of the Layer 7 cluster to which you want to add the rule.
The cluster Configuration screen (tab) will appear on the right:
a. Make sure that the Once Only checkbox is not checked; otherwise, uncheck it and click
Commit.
b. Make sure the Persist checkbox is not checked; otherwise, uncheck it and click Commit.
These steps are necessary because these flags, if enabled, cause only the first request in a connection to be
evaluated. Since we want content to come from one server pool and images from another, we want the server
pools that will have persistent connections to be chosen by the match rules.
3. Right-click the cluster name in the left frame and select Add Match Rule. The Add Match Rule form
appears:
a.
Type images into the Match Name text box and use the Next Match Rule drop-down list to
specify the match rule order for this match rule on the selected cluster. Click on Commit. In
this match rule, we’ll construct an expression that will match all the filename extensions of
the images to be served. These requests will go to the image servers.
The match rule is created, added to the object tree, and its Configuration tab is opened:
4. Click on the Expression Editor button:
a. Drag and drop the filename_suffix function from the from Functions pane to the Expression
Workbench.
b. Type “jpg” into the filename suffix text box.
342
Copyright © 2013 Coyote Point Systems. A subsidiary of Fortinet, Inc.
Comentarios a estos manuales