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
| Name | Type | Description |
|---|---|---|
| parameter | FastCGI parameter name | Name sent to the application, such as SCRIPT_FILENAME. |
| value | expression | Literal or variable expression; use an explicitly trusted script mapping. |
| if_not_empty | literal modifier | Omit the parameter if the evaluated value is empty. |
Working Example
Example Snippetnginx
fastcgi_param SCRIPT_FILENAME $document_root/hello.php;