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:spirit (ngin@nginx.us)
Date:Dec 16, 2009 5:39:54 am
List:ru.sysoev.nginx

@shizobuddy: /path/to/php is usually $document_root if set properly so you come
up with the following generic config:

fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;

@androo: instead of setting fastcgi_param in a if (in fact you can't), you can
still set variables to do so. Example

set $script index.php; set $path_info ""; if ($uri ~ "^(.+\.php)(.*)") { set $script $1; set $path_info $2; } fastcgi_param PATH_INFO $path_info; ....

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,866,30886#msg-30886