Directive reference
fastcgi_pass
Sends a request to a FastCGI responder.
| Syntax | fastcgi_pass address | unix:path | upstream_name; |
|---|---|
| Contexts | locationif in location |
| Default | none |
Behavior
Parameters are built from fastcgi_param directives and the request body is framed as FastCGI records.
Example
location ~ \.php$ {
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
} Related directives
fastcgi_param