Ask About Framework-Nginx
Igor Sysoev
is at rambler-co.ru
Wed Jan 9 14:34:40 MSK 2008
On Wed, Jan 09, 2008 at 11:27:06AM +0000, Igor Clark wrote:
> On 27 Dec 2007, at 07:25, Igor Sysoev wrote:
>
> > location ~ \.php($|/) {
> >
> > set $script $uri;
> > set $path_info "";
> >
> > if ($uri ~ "^(.+\.php)(/.+)") {
> > set $script $1;
> > set $path_info $2;
> > }
> >
> > fastcgi_pass 127.0.0.1:9000;
> >
> > fastcgi_param SCRIPT_FILENAME /data/labdetiksport/site/
> >sport$script;
> > fastcgi_param PATH_INFO $path_info;
>
>
> We find that PATH_INFO becomes ORIG_PATH_INFO when read from the
> environment by PHP.
> Is there any way to keep it as PATH_INFO, so as to keep the PHP
> software compatible with Apache?
This PHP issue. Looking in PHP sources, it seems that
cgi.fix_pathinfo=0 in php.ini should fix it.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list