ПРОЕКТЫ 


  АРХИВ 


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: не получается наст роить реврайты на kootali 1.5



On Wed, Oct 14, 2009 at 11:28:26AM +0400, Nemov Dmitry wrote:

> Здравствуйте, у меня не получается настроить реврайты под nginx для
> kootali 1.5, помогите плз. Это оригинальный .htaccess
> 
> RewriteEngine on
> 
> RewriteBase /
> # if you installed facebook in a subdir use something like below and
> remove the line above
> #
> # RewriteBase /subdirectory/
> 
> RewriteRule ^admin/$ index.php/admin/login/
> RewriteRule ^admin$ index.php/admin/login/
> 
> RewriteCond $1 
> !^(index\.php|application/images|application/scripts|application/css|application/content|application/settings|favicon.ico)
> RewriteRule ^(.*)$ index.php/$1

Как-то так:

    root  /path/to/files;

    location = /admin {
        fastcgi_pass  ...
        fastcgi_param  SCRIPT_FILENAME  /path/to/index.php;
        fastcgi_param  PATH_INFO        /admin/login/;
        include   fastcgi_params;
    }

    location = /admin/ {
        fastcgi_pass  ...
        fastcgi_param  SCRIPT_FILENAME  /path/to/index.php;
        fastcgi_param  PATH_INFO        /admin/login/;
        include   fastcgi_params;
    }

    location ~ ^(.+\.php)(.*)$ {
        fastcgi_split_path_info         ^(.+\.php)(.*)$;
        fastcgi_param  SCRIPT_FILENAME  /path/to$fastcgi_script_name;
        fastcgi_param  PATH_INFO        $fastcgi_path_info;
        include   fastcgi_params;
    }

    location = /favicon.ico {
    }

    location /application/images {
    }

    location /application/scripts {
    }

    location /application/css {
    }

    location / {
        try_files  $uri  /index.php$uri;
    }


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



 




Copyright © Lexa Software, 1996-2009.