ПРОЕКТЫ 


  АРХИВ 


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: непонятки с rewrite, нужна помощь


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: непонятки с rewrite, нужна помощь
  • From: Roxis <roxis@xxxxxxx>
  • Date: Thu, 26 Mar 2009 20:27:06 +0100
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :references:in-reply-to:x-face:x-mailer:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=wUUB0vXWQI85lKsbHvOfVB118IkbvoWO7XPsWNjuxTU=; b=iVH4zHlsbKhsiuiHpiJ2JvMFvEDaz90ZeQf60mdFU95ZVgG+qBRHss+UhBsEfXoV4s LTMZ2ueKgyIpTniUYnih/0fx8caI63YlOYs33J2uIJlba+jastiZUT/E9McWRZTHvViN 8CRoPASC/pgpxCpMJUAuCSK1kqkBqkI++D/vA=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:references:in-reply-to:x-face:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=kNyhSTqm//4mmynv7g35T5Iflkp0f6RG9CqNmZFmrhpwJVJHS9fgHwEDeoC5S+WE3k 55TBrVnH6ZUtso5DKPr/isesDOkZeAtSDq+CHAMIOGm9u1x3t62vA65oIcompnyVnnTq dlXHEgBI2CmCfUrmG1bllDSlSDXENlCMsbC0A=
  • In-reply-to: <7ba860a9165059ce9d349a389cf421b0@localhost>
  • References: <7ba860a9165059ce9d349a389cf421b0@localhost>

On Thursday 26 March 2009, Igor R wrote:

> RewriteEngine On
> RewriteRule ^/?([0-9]{1,3})/([0-9]{1,3})/([er])/([a-z0-9_\.-]+)/?$
> /amazon.php?folder=images&file=$4&width=$1&height=$2&aspect=$3   [L,NC]

в nginx нет флагов  [L,NC], поэтому:
rewrite "^/(\d{1,3})/(\d{1,3})/([er])/([a-zA-Z\d_.-]+)?/$" 
/amazon.php?folder=images&file=$4&width=$1&height=$2&aspect=$3 
last;



 




Copyright © Lexa Software, 1996-2009.