Переделка rewrite rule из .htaccess под nginx

Igor Sysoev is at rambler-co.ru
Tue Jul 17 15:19:33 MSD 2007


On Tue, Jul 17, 2007 at 03:14:49PM +0400, Oleg Danilov wrote:

> Может поможет кто-то переделать несколько правил с апача на nginx
> 
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^(.*)$ /index.php?path=$1&%{QUERY_STRING}

    location / {
        error_page  404 = /index.php?path=$uri&$args;
    }

    location = /index.php {
        fastcgi_pass  ...
        #proxy_pass   ...
    }


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





More information about the nginx-ru mailing list