Mastering Nginx

(Ron) #1
Chapter 6

[ 143 ]

Directive Explanation


fastcgi_cache_use_stale The cases under which it is acceptable to


serve stale cached data if an error occurs
when accessing the FastCGI server. The
updating parameter indicates the case
when fresh data are being loaded.

fastcgi_cache_valid Indicates the length of time for which a
cached response with response code 200,
301, or 302 is valid. If an optional response
code is given before the time parameter,
that time is only for that response code. The
special parameter any indicates that any
response code should be cached for that
length of time.


fastcgi_connect_timeout The maximum amount of time NGINX will
wait for its connection to be accepted when
making a request to a FastCGI server.


fastcgi_hide_header A list of header fields that should not be


passed on to the client.

fastcgi_ignore_client_abort If set to on, NGINX will not abort the
connection to a FastCGI server if the client
aborts the connection.


fastcgi_ignore_headers Sets which headers may be disregarded


when processing the response from the
FastCGI server.

fastcgi_index Sets the name of a file to be appended to


$fastcgi_script_name that ends with a
slash.

fastcgi_intercept_errors If enabled, NGINX will display a configured
error_page instead of the response
directly from the FastCGI server.


fastcgi_keep_conn Enables keepalive connections to FastCGI
servers by instructing the server not to
immediately close the connection.


fastcgi_max_temp_file_size The maximum size of the overflow file,


written when the response doesn't fit into
memory buffers.
Free download pdf