Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx+suexec, PHP ..



On Fri, 02 Mar 2007 10:18:53 +0200
  <voron@xxxxxxxxxx> wrote:

> Evgeny Stepanischev wrote:
> 
> >>  -      http://host/file.php/foo/bar
> > http://sysoev.ru/nginx/docs/http/ngx_http_rewrite_module.html
>     
> http://host/folder.php/sub_folder.php/file.php/param.php/param2.php  
> http://host/folder.php/sub_folder.php/file.php   
> param.php/param2.php
> ޣ       ...
> 
nginx.conf:
...
location / {
        ...
        set             $path_info      "";

        if ($fastcgi_script_name ~ ".php(/.+)$") {
                set     $path_info      $1;
        }
        ...
}
...

fastcgi_params:
...
fastcgi_param  PATH_INFO          $path_info;
...



 




Copyright © Lexa Software, 1996-2009.