The url command creates a URL matching rule.
The undo url command deletes a URL matching rule.
url pattern-string mode { prefix | suffix | exact | any }
undo url pattern-string mode { prefix | suffix | exact | any }
| Parameter | Description | Value |
|---|---|---|
| pattern-string | Specifies the matching string. When the matching type is URL, the string length after pre-processing cannot be less than 2. Pre-processing means the removal of prefixes "http://" or "https://" in a string. | The value is a string of 2 to 128 characters. |
| mode | Indicates the matching mode. | - |
| prefix | Indicates the prefix matching mode. | - |
| suffix | Indicates the suffix matching mode. | - |
| exact | Indicates the exact matching mode. | - |
| any | Indicates the any matching mode. | - |
In an HTTP server cluster, different URLs correspond to different real servers. Load balancing is based on the URLs.