Example Match Rules
Equalizer Installation and Administration Guide
227
Parsing the URI Using Match Rules
In this example, we want to direct requests to a particular server 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, and all other requests that do
not
match this rule to be load balanced across all servers 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
sv_support
. For this example, we assume that a cluster with four servers
(
sv_support
,
sv01
,
sv02
,
sv03
) has already been defined.
1. Log into the Administrative Interface using a login that has
add/del
access for the cluster (see “Logging In” on
page 52).
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
support
into the
match name
text box.
b. Select
sv_support
in the servers list; make sure only this server is selected:
c.
Select
commit
.
The match rule is created, added to the object tree, and its
Configuration
tab is opened, as shown on the
following page:
3. In the
expression
field, select
any()
to open the
Select function
dialog:
a.
Select
replace with host_prefix
from the drop-down box.
b. Type “
support
” into the
hostname prefix
text box. The dialog should now look like this:
c.
Click
continue
.
Содержание E350GX
Страница 18: ...Chapter Preface 18 Equalizer Installation and Administration Guide ...
Страница 38: ...Chapter 1 Equalizer Overview 38 Equalizer Installation and Administration Guide ...
Страница 50: ...Chapter 2 Installing and Configuring Equalizer Hardware 50 Equalizer Installation and Administration Guide ...
Страница 62: ...Chapter 3 Using the Administration Interface 62 Equalizer Installation and Administration Guide ...
Страница 80: ...Chapter 4 Equalizer Network Configuration 80 Equalizer Installation and Administration Guide ...
Страница 110: ...Chapter 5 Configuring Equalizer Operation 110 Equalizer Installation and Administration Guide ...
Страница 208: ...Chapter 7 Monitoring Equalizer Operation 208 Equalizer Installation and Administration Guide ...
Страница 240: ...Chapter 8 Using Match Rules 238 Equalizer Installation and Administration Guide ...
Страница 258: ...Chapter 9 Administering GeoClusters 254 Equalizer Installation and Administration Guide Envoy Configuration Worksheet ...
Страница 262: ...Appendix A Server Agent Probes 258 Equalizer Installation and Administration Guide ...
Страница 274: ...Appendix B Timeout Configuration 270 Equalizer Installation and Administration Guide ...
Страница 280: ...Appendix D Regular Expression Format 276 Equalizer Installation and Administration Guide ...
Страница 296: ...Appendix E Using Certificates in HTTPS Clusters 292 Equalizer Installation and Administration Guide ...
Страница 310: ...Appendix F Equalizer VLB 306 Equalizer Installation and Administration Guide ...
Страница 318: ...Appendix G Troubleshooting 314 Equalizer Installation and Administration Guide ...