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
| Name | Type | Description |
|---|---|---|
| parameter | CGI parameter name | Name the metadata field expected by the application. |
| value | string or expression | Supply literal or variable-derived value; review request metadata and inherited parameter sets. |
| condition | literal if_not_empty | Omit the field when its evaluated value is empty. |
Working Example
Example Snippetnginx
scgi_param REQUEST_METHOD $request_method;