Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Помогите с rewrite?
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
|