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: rewrite?



   .
  request_uri   ? query_string -  .

2009/3/27 Rauan Maemirov <rauan@xxxxxxxxxxxx>:
> , .   .
>
>  .   ,     ?
> ..    fastcgi_params  ,  
> fastcgi_param QUERY_STRING   path_info=$request_uri;
>
> 2009/3/27 Igor Sysoev <is@xxxxxxxxxxxxx>:
>> On Fri, Mar 27, 2009 at 04:35:55PM +0600, Rauan Maemirov wrote:
>>
>>> location @activeCollab {
>>>       fastcgi_pass  kiwi;
>>>       fastcgi_index index.php;
>>>       fastcgi_param SCRIPT_FILENAME /path/to/public/index.php;
>>>       fastcgi_param QUERY_STRING   path_info=$request_uri;
>>>       include    fastcgi_params;
>>>     }
>>>
>>>  path_info     .   
>>> fastcgi_params - ?
>>
>>   QUERY_STRING  fastcgi_params.
>>
>>> 2009/3/21 Igor Sysoev <is@xxxxxxxxxxxxx>:
>>> > On Sat, Mar 21, 2009 at 04:24:21PM +0300, Igor Sysoev wrote:
>>> >
>>> >> On Sat, Mar 21, 2009 at 07:09:24PM +0600, Rauan Maemirov wrote:
>>> >>
>>> >> > Options -Indexes
>>> >> > <IfModule mod_rewrite.c>
>>> >> > RewriteEngine On
>>> >> > RewriteCond %{REQUEST_FILENAME} -f [OR]
>>> >> > RewriteCond %{REQUEST_FILENAME} -d
>>> >> > RewriteRule ^(.+) - [PT,L]
>>> >> > RewriteRule ^$ public/index.php [L]
>>> >> > RewriteRule ^(.*) public/index.php?path_info=$1 [L]
>>> >> > </IfModule>
>>> >> >
>>> >> >    rewrite  activeCollab.   , 
>>> >> >   PT, L    .
>>> >>
>>> >>  fastcgi, :
>>> >>
>>> >>   location / {
>>> >>     try_files $uri $uri/ @activeCollab;
>>> >>   }
>>> >>
>>> >>   location @activeCollab {
>>> >>     fastcgi_pass  ...
>>> >>     fastcgi_param SCRIPT_FILE_NAME /public/index.php;
>>> >
>>> > -     fastcgi_param SCRIPT_FILE_NAME /public/index.php;
>>> > +     fastcgi_param SCRIPT_FILE_NAME /path/to/public/index.php;
>>> >
>>> >>     fastcgi_param QUERY_STRING   path_info=$request_uri;
>>> >>     ...
>>> >>   }
>>> >
>>> >
>>> > --
>>> >  
>>> > http://sysoev.ru
>>> >
>>> >
>>
>> --
>>  
>> http://sysoev.ru
>>
>>
>


 




Copyright © Lexa Software, 1996-2009.