Mastering Nginx

(Ron) #1

NGINX for the Developer


[ 174 ]

Command Argument Explanation
expr The expression to be evaluated
for truth:


  • variable existence
    (expr="$var")

  • text comparison
    (expr="$var = text"
    or expr="$var !=
    text")

  • regular expression
    match (expr="$var
    = /regexp/" or
    expr="$var != /
    regexp/")
    include Writes the result of a subrequest.
    file The name of a file to include.
    virtual The URI of a subrequest to
    include.
    stub The block to be included instead
    of an empty body, or if there was
    an error in processing.
    wait If there are multiple include
    commands on the same page,
    they will be processed serially
    if this parameter is present.
    set If the subrequest made in
    virtual is to a proxy_pass or
    memcached_pass location,
    the result can be stored in the
    variable named as the argument
    to set.
    set Creates a variable and sets the
    value to it.
    var The name of the variable to be
    set.
    value The value of the variable to set.

Free download pdf