Instruction manual
Appendix A: Policy Expressions
A-4 NetScaler 9000 Series Installation and Configuration Guide - Volume 1
NSICG60_JAN05
Example:
add policy expression meth_get "METHOD == GET"
An alternate form of this expression is as follows.
add policy expression meth_get "REQ.HTTP.METHOD == GET"
z URL: This qualifier deals with the URL in a HTTP header. This does not
include the query string (i.e. any characters following the ? when present).
add policy expression url_html "URL == /*.html"
An alternate form of this expression is as follows.
add policy expression url_html " REQ.HTTP.URL ".
z 〈URLTOKENS: This qualifier deals with special tokens in the URL. This
allows an expression to detect if any special tokens are contained within
the full URL. For more information on URL Tokens, see NetScaler 9000
Series Command Reference.
z 〈VERSION: This qualifier deals with the HTTP request version. There is
special significance to the fact that many web servers will answer a
request when no version identifier is specified in the HTTP request. The
format for the version is
HTTP/X.X where X is an integer.
add policy expression http_1_0 "VERSION == HTTP/1.0"
An alternate form of this expression is as follows.
add policy expression http_1_0 " REQ.HTTP.VERSION"
z 〈HEADER: This qualifier is same as qualifier HTTPHEADER. This qualifier
specifies a given HTTP header by name. The header does not have to be
any of the standard headers, but can match a plain-text string. If there are
more than one instances of a particular header, the Netscaler policy
engine will only test against the last HTTP header of the name specified.
This could cause problems if standard browsers, for example, start issuing
distinct cookies in separate cookie headers.
add policy expression host_hdr "HEADER Host CONTAINS
mydomain.com"
An alternate form of this expression is as follows.
add policy expression host_hdr " REQ.HTTP.HEADER"
z 〈URLQUERY: This qualifier matches against the query portion of a URL
(i.e. after the ?).