|
|
|
|
АРХИВ :: nginx-ru
|
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rewrite из apache в nginx
- To: nginx-ru@xxxxxxxxx
- Subject: rewrite из apache в nginx
- From: "Vasiliy G Tolstov" <v.tolstov@xxxxxxxxx>
- Date: Wed, 30 Jan 2008 00:06:03 +0300 (MSK)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=myselector; d=selfip.ru; h=Received:Received:Received:Message-ID:Date:Subject:From:To:Cc:Reply-To:User-Agent:MIME-Version:Content-Type:X-Priority:Importance:X-DSPAM-Result:X-DSPAM-Processed:X-DSPAM-Confidence:X-DSPAM-Improbability:X-DSPAM-Probability:X-DSPAM-Signature:X-DSPAM-Factors; b=aJ6jSsIgHi+ipax60td6GKEwgi06qqtEE011OGkykbrYufexEGvKLhWWnSw9mxtUjiDhZ8nPKU1IoTxXg2G1FtYfRPDRkqkrjRTnEuhsX2TIbABaMXhDU8Asa5UlSd+jFCPyC4GA1g5npc7euTbGONj3Kp8li4GsLQ/sUm+GEnU=;
- Importance: Normal
Возникла проблема с переделкой rewrite правил из apache в nginx
RewriteRule ^(.*)/$
index.php?url_path=$1 RewriteRule ^(.*)/([0-9]+)$ index.php?url_path=$1&page=$2 RewriteRule ^(.*)/([0-9]+).html$ info.php?url_path=$1&ads_id=$2 RewriteRule
^([A-Za-z0-9_]+)$ index.php?city_filename=$1&set_city_id=1
Первое переделал в location / { rewrite
^/(.*)/$ index.php?url_path=$1 last; }
А вот как с остальными,
не получается =(. Кто нибудь может помочь?
--
|
|
|