minimal fastcgi config for 1 file?

Grant emailgrant at gmail.com
Thu Feb 13 16:07:23 UTC 2014


>> I noticed my distro doesn't include any of the following in
>> fastcgi_params and only the first of these in fastcgi.conf:
>>
>> SCRIPT_FILENAME
>> PATH_INFO
>> PATH_TRANSLATED
>>
>> They are all included in fastcgi_params in the example here:
>>
>> http://wiki.nginx.org/PHPFcgiExample
>>
>> Should they all be added to fastcgi_params?
>
> No.  The idea is that fastcgi_params include basic parameters, and
> usable in configurations like:
>
>     location / {
>         fastcgi_pass ...
>         fastcgi_param SCRIPT_FILENAME /path/to/script.php;
>         fastcgi_param PATH_INFO $uri;
>         include fastcgi_param;
>     }

Should the wiki example be switched from fastcgi_param to fastcgi.cfg:

http://wiki.nginx.org/PHPFcgiExample

Also, PATH_INFO and PATH_TRANSLATED appear in the wiki but don't
appear in the shipped files.  Should they be removed from the wiki?

- Grant



More information about the nginx mailing list