Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
Re: Переделка rewrite rule из .htaccess п од nginx
To : Oleg Danilov <nginx-ru@xxxxxxxxx >
Subject : Re: Переделка rewrite rule из .htaccess п од nginx
From : Andre Larionov <andre.larionov@xxxxxxxxx >
Date: Tue, 17 Jul 2007 17:16:27 +0500
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:reply-to:x-priority:message-id:to:subject:in-reply-to:references:mime-version:content-type:content-transfer-encoding:from; b=D6NT7pF0Xz1bI5l32RhS1AGb4xNfM3U6UCFBj/mUP10sedwgp0SfV3D18MRcjTv+9178t3VDc0ix8n6lzCsUqbUFcndkoqTj/NSshWWiqndiSOtP0j+UPkXBjOCFnEStdCdZIz3O6mkoDiA0/wOlGT/ljx/h2qT0WGe3EVpEbjY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:reply-to:x-priority:message-id:to:subject:in-reply-to:references:mime-version:content-type:content-transfer-encoding:from; b=lXC9qSPZ2WVrkePDUD/8UItwc/D48PDk+b8jgzSKBVv9XLv7megdI5EKSRVyXgc3oVfw818H7d4FUnzIcWJ8rzYc5J5zwzyANmgTKETzmwaeD009b6s8yGGj+IgQIRakkgD8trqBbAPXrvNSt9c02xegn2Of2x3HYbVTi5rv3Rs=
In-reply-to: <469CA4A9.10202@xxxxxxxxxx >
References: <469CA4A9.10202@xxxxxxxxxx >
Здравствуйте, Oleg.
Вы писали 17 июля 2007 г., 16:14:49:
> Добрый день!
> Может поможет кто-то переделать несколько правил с апача на nginx
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^(.*)$ /index.php?path=$1&%{QUERY_STRING}
location / {
rewrite ^/(.*)$ /index.php/$1 break;
proxy_pass http://127.0.0.1 ;
}
--
С уважением,
Andre mailto:Andre.Larionov@xxxxxxxxx