Closed mehov closed 7 years ago
Nginx's fastcgi_params
includes this right after SERVER_PROTOCOL
:
fastcgi_param REQUEST_SCHEME $scheme;
And Debian's fastcgi.conf
has
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
The fastcgi_params
that comes from Debian repo has the least amount of features.
From what I understand, the Debian package maintainers wanted to avoid overwriting the default files that come with Nginx, so they had to come up with this approach. It appears that:
fastcgi_params
comes with Nginx and declares the variables that will be accessible as $_SERVER[...]
in PHPfastcgi.conf
comes with Debian, is mostly the same as the previous one, except it declares few more variablessnippets/fastcgi-php.conf
has security hotfixes and workarounds for wontfix issues like this oneOn Nginx versions maintained by Debian, the fastcgi_params
does not seem to be used at all, and it just sits there. Instead, the PHP configurations refer to snippets/fastcgi-php.conf
which includes fastcgi.conf