mehov / debian-automation

A few scripts to automate most common Debian setups
0 stars 0 forks source link

figure out redundant fastcgi configuration files #25

Closed mehov closed 7 years ago

mehov commented 7 years ago
mehov commented 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.

mehov commented 7 years ago

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:

On 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