HTTP scgi directives

scgi_param directive

Sets a parameter for the SCGI server. Context: http, server, location.

Formal Syntax & Structure

nginx syntaxnginx
scgi_param parameter value [if_not_empty];

Parameters & Attributes

NameTypeDescription
parameterCGI parameter nameName the metadata field expected by the application.
valuestring or expressionSupply literal or variable-derived value; review request metadata and inherited parameter sets.
conditionliteral if_not_emptyOmit the field when its evaluated value is empty.

Working Example

Example Snippetnginx
scgi_param REQUEST_METHOD $request_method;
Nginx Reference