Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501132 - www-servers/nginx - /etc/nginx/fastcgi_params should pass SCRIPT_FILENAME, PATH_INFO, PATH_TRANSLATED
Summary: www-servers/nginx - /etc/nginx/fastcgi_params should pass SCRIPT_FILENAME, PA...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-12 23:16 UTC by A. Person
Modified: 2014-02-13 17:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A. Person 2014-02-12 23:16:14 UTC
/etc/nginx/fastcgi_params should match the example given here:

http://wiki.nginx.org/PHPFcgiExample

It is missing the following:

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;

php-fpm *does not* work for me without adding those lines.  There is another slight variation from the example above which I'm guessing is fine:

fastcgi_param HTTPS $https if_not_empty;
Comment 1 Alex Xu (Hello71) 2014-02-13 00:02:57 UTC
This file must match upstream for *other* people's configs to work.

This behavior matches other distros, but not Debian, IIRC.

Leaving as UNCONFIRMED, but 95% sure this is WONTFIX.
Comment 2 Johan Bergström 2014-02-13 00:07:50 UTC
(In reply to Alex Xu (Hello71) from comment #1)
> Leaving as UNCONFIRMED, but 95% sure this is WONTFIX.

Yep. I don't think we should touch upstream files unless were changing paths. Closing.
Comment 3 A. Person 2014-02-13 17:54:05 UTC
The root of the problem here was the erroneous nginx wiki.  I can confirm that those files do match upstream (but not the wiki).