12 messages in ru.sysoev.nginxRe: Re: symfony php configuration
FromSent OnAttachments
shaktaleApr 29, 2009 8:21 am 
Joe BofhApr 30, 2009 3:58 pm 
shaktaleMay 5, 2009 1:28 am 
shaktaleMay 14, 2009 4:51 am 
Igor SysoevMay 14, 2009 5:02 am 
shaktaleMay 18, 2009 1:51 am 
Zheng, Wenxing (NSN - CN/Beijing)May 19, 2009 11:25 pm 
Delta YehMay 19, 2009 11:35 pm 
Mikel ArtetaMay 22, 2009 12:19 pm 
Igor SysoevMay 22, 2009 12:52 pm 
Mikel ArtetaMay 23, 2009 4:12 am 
Igor SysoevMay 23, 2009 8:20 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Re: symfony php configurationActions...
From:Igor Sysoev (is@rambler-co.ru)
Date:May 23, 2009 8:20:35 am
List:ru.sysoev.nginx

On Sat, May 23, 2009 at 01:12:49PM +0200, Mikel Arteta wrote:

Igor Sysoev wrote: You did not set

fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name;

and some other probably needed parameters inside location ~ \.php$ { and location ~ ^(.+\.php)(.*)$ {

Yet I have the settings in the file fastcgi_params, includes nginx.conf:

-------------

events { worker_connections 1024; use epoll;}

http { ... ... ... include fastcgi_params;

---------------

k26:nginx/conf# cat fastcgi_params

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $request_uri; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root;

The silnge fastcgi_param PATH_INFO $fastcgi_path_info; overrides all inherited fastcgi_param's. Threfore you should include it inside "location ~ ^(.+\.php)(.*)$".

Also, note wrong fastcgi_param PATH_INFO $request_uri; in the file.