problems with php-fpm

Igor Sysoev is at rambler-co.ru
Wed Aug 27 10:53:06 MSD 2008


On Tue, Aug 26, 2008 at 05:24:11PM -0700, mike wrote:

> do you have a log from php-fpm?
> 
> also you can throw this in fastcgi_params, so you don't have to define
> it in each server block.
> 
> fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
> 
> oh yeah - and fastcgi params can be included globally in http {} block
> doesn't need to be in each server/location block.
> 
> also i believe fastcgi_index can be removed completely.

Yes, fastcgi_index is useless inside "~* \.php$" location because a request
with trailing slash i.e. "/some/dir/" and that requires the fastcgi_index
directove, will never reach the location.

However, fastcgi_index may be set on http level, and will be inherited
in all locations.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list