PHP: How can I get domain.com/index.php/blah/ to work?

Igor Sysoev is at rambler-co.ru
Sat Jul 21 19:42:01 MSD 2007


On Sat, Jul 21, 2007 at 03:02:07PM +0000, Rob wrote:

> Igor Sysoev <is at ...> writes:
> 
> > 
> > Do you use FastCGI ?
> > 
> > .. snip ..
> > 
> 
> Thank you! That worked perfectly. Although, for some reason PATH_INFO shows up
> as ORIG_PATH_INFO in PHP, even though I have "cgi.fix_pathinfo = 1" set in
> php.ini. So I had to modify my PHP framework to use ORIG_PATH_INFO instead of
> PATH_INFO.

try

-       fastcgi_param  SCRIPT_FILENAME  /path/to/$script_name;
+       fastcgi_param  SCRIPT_FILENAME  /path/to$script_name;


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





More information about the nginx mailing list