Managing Path Route Sets
On Compute Cloud@Customer, you can apply a set of path routes to a load balancer (LB) to determine the appropriate destination backend set for incoming URIs.
Some applications have multiple endpoints or content types, each distinguished by a unique URI path such as /admin/
, /data/
, /video/
, or /cgi/
. Each rule in a path route set names a backend set, a partial URI to match, and the pattern match type.
Path route rules route traffic to the correct backend set without requiring multiple listeners or LBs.
A path route set includes all path route rules that define the data routing for a particular listener. You can have at most one path route set for each listener. You can specify at most 20 path route rules for each path route set.
Path route rules apply only to HTTP, HTTP/2, and HTTPS requests. Path route rules do not apply to TCP requests.
Path route rule URL strings have the following restrictions:
- You can't use asterisks in path route strings.
- You can't use regular expressions.
- Path route string matching is case-insensitive. For example, both "data" and "DATA" match.
Browsers often add an ending slash to the path in a request. You might want to configure a rule with a URL string that includes the trailing slash and a second rule with a URL string that does not include the trailing slash (for example,/admin
and /admin/
).
- EXACT_MATCH: The path string must match the incoming URI path exactly.
-
FORCE_LONGEST_PREFIX_MATCH: The path string must match longest ("best") match of the beginning portion of the incoming URI path.
-
PREFIX_MATCH: The path string must match the beginning portion of the incoming URI path.
- SUFFIX_MATCH: The path string must match the ending portion of the incoming URI path.