If you have configured request rewriting, configure HTTP content-based routing based on the original request, as it appears before FortiWeb has rewritten it. For more information on rewriting, see “Rewriting & redirecting” on page 377. |
Setting name | Description |
Match Object | Select one of the following as the object that FortiWeb examines for matching values: • HTTP Host — Host: field • HTTP Request — Request URL • HTTP Referer — Referer: field • Source IP — Source IP address of request • HTTP Request Cookie |
Match Condition | Specifies whether the value to match is a literal value that appears in the object or a regular expression. The value of Match Object determines which content types you can select. For HTTP Host, HTTP Request, and HTTP Referer only: • Match prefix — The object to match begins with the specified string. • Match suffix — The object to match ends with the specified string. • Match contains — The object to match contains the specified string. For HTTP Host only: • Match domain — The object to match contains the specified string between the periods in a domain name. For example, if Match Simple 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 For HTTP Request, and HTTP Referer only: • Match directory — The object to match contains the specified string between delimiting characters (slash) in a domain name. For example, if Match Simple String is abc, the condition matches the following hostnames: • test.com/abc/ • test.com/dir1/abc/ • http://test.abc.com/ However, the same Match Simple String value does not match the following hostnames: • test.com/abc • test.abc.com For all object types: • Regular expression — The object to match has a value that matches the specified regular expression. |
Match Simple String | Specifies a value to match in the object element specified by Match Object and Match Condition. Displayed 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. |
Regular Expression | Specifies a regular expression to match a value in the object element specified by Match Object and Match Condition. Displayed when the value of Match Condition is Regular Expression. For example, an expression, such as ^/*.php, that matches a URL. To create and test a regular expression, click the >> (test) icon. This opens the Regular Expression Validator window where you can fine-tune the expression (see “Regular expression syntax”). |
Cookie Name | Enter 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. Displayed when Match Object is HTTP Request Cookie. To create and test a regular expression, click the >> (test) icon. This opens the Regular Expression Validator window where you can fine-tune the expression (see “Regular expression syntax”). |
Cookie Value | 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]*. To create and test a regular expression, click the >> (test) icon. This opens the Regular Expression Validator window where you can fine-tune the expression (see “Regular expression syntax”). |