Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rewrite + redirect
- To: nginx-ru@xxxxxxxxx
- Subject: Re: rewrite + redirect
- From: "Vasyl Kondrashov" <vasyl.kondrashov@xxxxxxxxx>
- Date: Tue, 30 Sep 2008 11:16:58 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=r/l32SAiVfoLIsPWsWGojqOsixNDFVz6OLQkx0YIylQ=; b=lEPufgDT/tHqfduPvtO6zuJgRO/30RBBOlT6t7Bvmz4DAUEe8peTsZjXD+YKVs+0gU 9fSkf6sLgt3km21Scmo0zueKekXvZuIowj/YD0LpifPJ1CjoGbmIebhhgGHC0q7YrsBt 76URiLZ0caKqyP47XBUS5VsAyMgapsHi938YE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=dNJlR2am7mf90Tw/eB3riRN+TKQ7VUIcGcB8UXzESsrjMC9nlQj30RCLKNYILfQGvz XWbyG59f9O4KkGxn3OmVUdsf73cBolBhNGPWCwnej4+gVNBNJ61JaLFklV4J8Hcr0pOb ohWtcJUxmfkbRIPa13NnQOebvUI7V1mywFuOA=
- In-reply-to: <48E1B5BA.4000203@xxxxxxxxxx>
- References: <000601c92270$e840eb60$b8c2c220$@ru> <48E1B5BA.4000203@xxxxxxxxxx>
Мне лично не нравится ^ ;)
Да и к тому же, там редирект...
Может лучше
if (!-e $request_filename) {
rewrite ^pic1/([a-zA-Z0-9]+).gif$
http://pictures.example.com/pic2/$1.gif redirect;
last;
}
ну и включить rewrite_log и глядеть, что не так...
|