xin

Directive reference

fastcgi_pass

Sends a request to a FastCGI responder.

Syntaxfastcgi_pass address | unix:path | upstream_name;
Contextslocationif in location
Defaultnone

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