Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "?" в $request_uri
- To: nginx-ru@xxxxxxxxx
- Subject: Re: "?" в $request_uri
- From: Andrey Ignatov <andr.pl@xxxxxxxxx>
- Date: Tue, 20 Nov 2007 16:53:44 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:subject:message-id:references:mime-version:content-type:content-disposition:content-transfer-encoding:in-reply-to:user-agent:x-useless-header; bh=ELUHsiM7l5FeDOLkHE9cEsWz6pF0gGV8sQJqcFclWpw=; b=UqCch4olQ9SXgls4qHiip0OX3i1XD1wWFee2Z9vImX1vUfQw8IdMkFF8OrbLEvcNbDM1URekDQ+wImPU0456yYbuSm1qChGtAKTbkUID6kH9wFVjWlfPlYL/2hcv6nqCykmhRtkujsGUY3mcU/1z27E8xg+mC0CrpB70tM0EQzA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:references:mime-version:content-type:content-disposition:content-transfer-encoding:in-reply-to:user-agent:x-useless-header; b=m2TV7cYztKIFrZfbd/gs0JcWO0UEuPoTgmBmHmoZel0CBD9J+75OlYiGbxm0Z2q8lrMZJ+BKKkOsnV/uWwds9zwzor7PhCTgxu9Cx0nY+AlfJaS0dkEqY3pxlyj9eNOylYjRTlwYvxDamdteS2HukVa+n6+mI73bYKiCd0Eg6HQ=
- In-reply-to: <4742E20A.3070302@xxxxxxxxx>
- References: <20071120131857.GA55410@xxxxx> <4742E20A.3070302@xxxxxxxxx>
On Tue, Nov 20, 2007 at 04:32:58PM +0300, Заяц Алексей wrote:
> Andrey Ignatov пишет:
> > Есть вот такая конструкция в конфиге:
> >
> > -------------------------------------
> > if ($request_uri ~ "^/v/?video=([0-9]+)$") {
> > set $clip_id $1;
> > rewrite ^.*$ /video.phtml?clip_id=$clip_id last;
> > }
> > -------------------------------------
> >
> Эскейпить нужно "вопросик"
> - if ($request_uri ~ "^/v/?video=([0-9]+)$") {
> +if ($request_uri ~ "^/v/\?video=([0-9]+)$") {
Да, действительно. Спасибо.
> --
> С уважением,
> Алексей Заяц.
--
Andrey Ignatov
Skript, System administrator
|