Ask About Framework-Nginx
Igor Clark
igor at pokelondon.com
Wed Jan 9 14:41:16 MSK 2008
That's great Igor, that means we should be able to use it on earlier
versions of PHP.
Many thanks.
Igor
On 9 Jan 2008, at 11:34, Igor Sysoev wrote:
> 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/
>
--
Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749
5355 // www.pokelondon.com
More information about the nginx
mailing list