Variable | Description | Default |
<routing-policy_name> | Type the name of the HTTP content routing policy. The maximum length is 63 characters. To display the list of existing policies, type: edit ? | No default. |
server-pool <server-pool_name> | Type the name of the server pool to which FortiWeb forwards traffic when the traffic matches rules in this policy. For more information, see “config server-policy server-pool”. | No default. |
<entry_index> | Type the index number of the individual rule in the table. The valid range is from 1 to 9,999,999,999,999,999,999. | No default. |
match-object {HTTP-HOST | HTTP-Referer | HTTP-Request | HTTP-Request-Cookie | Source-IP | } | Type the type of object that FortiWeb examines for matching values: • HTTP-HOST — Host: field • HTTP-Referer — Referer: field • HTTP-Request — Request URL • HTTP-Request-Cookie — HTTP Request Cookie • Source-IP — Source IP address of request | No default. |
match-condition {Match-Begin | Match-End | Match-Sub | Match-Domain | Match-Dir | Match-Reg} | Type the type of value to match. Values can be a literal value that appears in the object or a regular expression. The value of match-object determines which content types you can specify. If match-object is HTTP-HOST, HTTP-Request, or HTTP-Referer only: • Match-Begin — The object to match begins with the specified string. • Match-End — The object to match ends with the specified string. • Match-Sub — The object to match contains the specified string. If match-object is HTTP-HOST only: • Match-Domain — The object to match contains the specified string between the periods in a domain name. For example, if match-string is abc, the condition matches the following hostnames: • dname1.abc.com • dname1.dname2.abc.com However, the same Match Simple String value does not match the following hostnames: • abc.com • dname.abc If match-object is HTTP-Request or HTTP-Referer only: • Match-Dir — The object to match contains the specified string between delimiting characters (slash) in a domain name. For example, if match-string is abc, the condition matches the following hostnames: • test.com/abc/ • test.com/dir1/abc/ • http://test.abc.com/ However, the same match-string value does not match the following hostnames: • test.com/abc • test.abc.com For all object types: Match-Reg — The object to match has a value that matches the specified regular expression. | No default. |
match-string <match_str> | Specifies a value to match in the object element specified by match-object and match-condition. Available when the condition to match is a prefix, suffix, part of the domain name, or other literal object value. For example, a literal URL, such as /index.php, that a matching HTTP request contains. | No default. |
regular-expression <object_pattern> | Specifies a regular expression to match a value in the object element specified by match-object and match-condition. Available when the value of match-condition is Match-Reg. For example, an expression, such as ^/*.php, that matches a URL. Tip: When you enter a regular expression using the web UI, you can validate its syntax. | No default. |
cookie-name-reg <cookie-name_str> | Type a regular expression to match the name of the cookie that appears in an HTTP header. For example, the name of a cookie embedded by traffic controller software on one of the servers. Available when the value of match-object is HTTP-Request. Tip: When you enter a regular expression using the web UI, you can validate its syntax. | No default. |
cookie-value-reg <cookie-val_str> | Enter a regular expression that matches all and only the cookie values you want the rule to apply to. For example, hash[a-fA-F0-7]*. Available when the value of match-object is HTTP-Request. Tip: When you enter a regular expression using the web UI, you can validate its syntax. | No default. |