Mastering Nginx

(Ron) #1

The NGINX HTTP Server


[ 144 ]

Directive Explanation
fastcgi_next_upstream Indicates the conditions under which the
next FastCGI server will be selected for the
response. This won't be used if the client
has already been sent something. The
conditions are specified using the following
parameters:


  • error: An error occurred while
    communicating with the FastCGI
    server

  • timeout: A timeout occurred while
    communicating with the FastCGI
    server

  • invalid_header: The FastCGI
    server returned an empty or
    otherwise invalid response

  • http_500: The FastCGI server
    responded with a 500 error code

  • http_503: The FastCGI server
    responded with a 503 error code

  • http_404: The FastCGI server
    responded with a 404 error code

  • off: Disables passing the request
    to the next FastCGI server when an
    error occurs
    fastcgi_no_cache One or more string variables, which when
    non-empty or non-zero, will instruct
    NGINX to not save the response from the
    FastCGI server in the cache.
    fastcgi_param Sets a parameter and its value to be passed
    to the FastCGI server. If the parameter
    should only be passed when the value is
    non-empty, the if_not_empty additional
    parameter should be set.
    fastcgi_pass Specifies the FastCGI server to which
    the request is passed, either as an
    address:port combination or as
    unix:path for a UNIX-domain socket.

Free download pdf