Mastering Nginx

(Ron) #1
Chapter 6

[ 145 ]

Directive Explanation


fastcgi_pass_header Overrides the disabled headers set in


fastcgi_hide_header, allowing them
to be sent to the client.

fastcgi_read_timeout Specifies the length of time that needs


to elapse between two successive read
operations from a FastCGI server before the
connection is closed.

fastcgi_send_timeout The length of time that needs to elapse


between two successive write operations to
a FastCGI server before the connection is
closed.

fastcgi_split_path_info Defines a regular expression with two


captures. The first capture will be the value
of the $fastcgi_script_name variable.
The second capture becomes the value of
the $fastcgi_path_info variable. Only
necessary for applications that rely upon
PATH_INFO.

fastcgi_store Enables storing responses retrieved from
a FastCGI server as files on disk. The on
parameter will use the alias or root
directive as the base path under which to
store the file. A string may instead be given,
to indicate an alternative location to store
the files.


fastcgi_store_access Sets file access permissions for newly-
created fastcgi_store files.


fastcgi_temp_filewrite
size


Limits the amount of data buffered to a
temporary file at one time, so that NGINX
will not block too long on a single request.

fastcgi_temp_path A directory where temporary files may
be buffered as they are proxied from the
FastCGI server, optionally multilevel deep.

Free download pdf