Can fastcgi_index be used with multiple filenames?

Igor Sysoev is at rambler-co.ru
Sun Mar 9 00:38:14 MSK 2008


On Sat, Mar 08, 2008 at 04:18:29PM -0500, Ian M. Evans wrote:

> Igor Sysoev wrote:
> >It's surprise for me that PHP sees
> >
> >SCRIPT_FILENAME    /usr/local/apache/htdocs/galleries/123/1
> >SCRIPT_NAME        /galleries/123/1
> >PATH_INFO          /galleries/123/1
> >
> >and understands that it needs to look script in /galleries, but not
> >in /galleries/123/1.
> 
> My PATH_INFO is just the text after the script. Here's a grab from 
> phpinfo():
> 
> REQUEST_URI	/test.php/123/1
> 
> SCRIPT_FILENAME	/usr/local/apache/htdocs/test.php
> SCRIPT_NAME	/test.php
> PATH_INFO	/123/1
> 
> 
> That's how it's always been for me.

I wander how can it be with settings:

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

and $fastcgi_script_name == /test.php/123/1 ?


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





More information about the nginx mailing list