Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rewrite c ÚÁÍÅÎÏÊ ÁÒÇÕÍÅÎÔÏ ×
- To: nginx-ru@xxxxxxxxx
- Subject: Re: rewrite c ÚÁÍÅÎÏÊ ÁÒÇÕÍÅÎÔÏ ×
- From: Denis F. Latypoff <latypoff@xxxxxxxxx>
- Date: Mon, 10 Oct 2011 12:59:12 +0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1318226353; bh=sluYVEOPDTsMUCbf06hOkViyCdT4SxSAiyHT+PHTM9g=; h=From:To:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=dfAMJ4yc8V9TiHw5RzWuhRymIZV4+TW5ueKbYjOB4USifIYlMs9nL+GFt73yYtkJO E0lkTJzDceZW+MFTsaKvAmnK4vQzGyxkxue81VVKvfVydYDKLknDwjEUno1vld1K1z oMz//F6M2VA1I4OksmJX6mNqi4MBJqbtWkVXsp0Q=
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1318226353; bh=sluYVEOPDTsMUCbf06hOkViyCdT4SxSAiyHT+PHTM9g=; h=From:To:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=dfAMJ4yc8V9TiHw5RzWuhRymIZV4+TW5ueKbYjOB4USifIYlMs9nL+GFt73yYtkJO E0lkTJzDceZW+MFTsaKvAmnK4vQzGyxkxue81VVKvfVydYDKLknDwjEUno1vld1K1z oMz//F6M2VA1I4OksmJX6mNqi4MBJqbtWkVXsp0Q=
- In-reply-to: <fc100a99143083dca911b9d569d168c0.NginxMailingListRussian@xxxxxxxxxxxxxxx>
- References: <CAE1gEPZ8+TXhSSPXn9U-YhsQFndBMkCJLqEt9xFsTgO0HhY4uw@xxxxxxxxxxxxxx> <fc100a99143083dca911b9d569d168c0.NginxMailingListRussian@xxxxxxxxxxxxxxx>
10.10.2011, 10:23, "babayka" <nginx-forum@xxxxxxxx>:
> Õ ÍÅÎÑ ÞÕÔØ ÐÏ ÄÒÕÇÏÍÕ ÏÒÇÁÎÉÚÏ×ÁÎÏ
>
> listen 80:
> server {
> ššššserver_name anysite.ru;
>
> ššššlocation / {
> ššššššššššš......
>
- ššššššššššlocation ~ *.\php$ {
+ ššššššššššlocation ~ \.php$ {
> ššššššššššššššš......
> šššššššššš}
> šššš}
>
> šššlocation /new/ {
> ššššššššššššš.......
>
+ šššššššššššlocation = /new/indo.php {
+ if ($arg_id = 1) {
+ return 301 /new/indo.php?id=2;
+ }
+ ššššššššššššššš......
+ }
+
- šššššššššššlocation ~ *.\php$ {
+ ššššššššššlocation ~ \.php$ {
> ššššššššššššššš......
> šššššššššš}
>
> šššš}
> }
>
--
br, Denis F. Latypoff.
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|