atom feed8 messages in ru.sysoev.nginxRe: fastcgi server variables vs. apache
FromSent OnAttachments
androoApr 6, 2009 4:54 pm 
Denis F. LatypoffApr 6, 2009 7:49 pm 
androoApr 7, 2009 8:02 pm 
My SchizoBuddyDec 10, 2009 6:27 am 
Igor SysoevDec 10, 2009 6:40 am 
spiritDec 16, 2009 5:39 am 
Igor SysoevDec 16, 2009 5:55 am 
locojohnJul 7, 2011 6:21 am 
Subject:Re: fastcgi server variables vs. apache
From:Igor Sysoev (ig@sysoev.ru)
Date:Dec 10, 2009 6:40:17 am
List:ru.sysoev.nginx

On Thu, Dec 10, 2009 at 03:28:17PM +0100, My SchizoBuddy wrote:

what is /path/to/php? is it where the root index.php is

for links like dev.flow3.local/index.php/flow3/welcome the path_translated is C:/nginx/html/flow3/Web/flow3/welcome which is wrong cause there is no folder flow3 inside the Web folder. flow3 and welcome are query parameters not folders.

location ~ ^(.+\.php)(.*)$ { fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param SCRIPT_FILENAME C:/nginx/html$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; ... }

For dev.flow3.local/index.php/flow3/welcome SCRIPT_FILENAME will be "C:/nginx/html/index.php" PATH_INFO - "/flow3/Web/flow3/welcome"