Помогите с rewrite?

Igor Sysoev is at rambler-co.ru
Sat Mar 21 16:24:21 MSK 2009


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 QUERY_STRING      path_info=$request_uri;
        ...
    }


-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list