syntax: scgi_param parameter value
default: none
context: http, server, location
Directive assigns the parameter, which will be transferred to the SCGI-server.
It is possible to use strings, variables and their combination as values. Directives not set are inherited from the outer level. Directives set in current level clear any previously defined directives for the current level.
scgi_param SCGI 1; scgi_param REQUEST_URI $request_uri;
Parameter REQUEST_URI is used to determine the name of script to execute, and QUERY_STRING contains the parameters of the request. scgi_param SCGI 1; is required to be in the list of parameters by the SCGI standard. scgi_param CONTENT_LENGTH $content_length; is automatically included as the first parameter.
If dealing with POST requests, two additional parameters are necessary.
scgi_param REQUEST_METHOD $request_method; scgi_param CONTENT_TYPE $content_type;