HTTP FastCGI directives

fastcgi_param directive

HTTP/server/location; supplies request metadata. A local list replaces inherited declarations.

Formal Syntax & Structure

nginx syntaxnginx
fastcgi_param parameter value [if_not_empty];

Parameters & Attributes

NameTypeDescription
parameterFastCGI parameter nameName sent to the application, such as SCRIPT_FILENAME.
valueexpressionLiteral or variable expression; use an explicitly trusted script mapping.
if_not_emptyliteral modifierOmit the parameter if the evaluated value is empty.

Working Example

Example Snippetnginx
fastcgi_param SCRIPT_FILENAME $document_root/hello.php;
Nginx Reference