Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rewrite на подлокации
- To: nginx-ru@xxxxxxxxx
- Subject: rewrite на подлокации
- From: Victor Kharchenko <dovidas84@xxxxxxxxx>
- Date: Tue, 30 Aug 2011 11:24:54 +1100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=rrI6cBz0cRdmvuM4u46sLteIn+EuPbgr6gd823W63Lg=; b=H49ks4bz8KPCzEOTL/Tpv2PrNtFkj4fX+UavpyBBfpgtnPcyl8ZAKhilN1nrjnOSfs ALDAfi8MOt4m9WrwbX11MHjx0dmVSiDz/78obtwXjFlNuZz/u1in/f29Wkgb2z9AYD80 fwM1Z/TNEL4cbM6gcVNAoIGA45eQyyPSZNyY0=
Поставил nginx в качестве фронэнда, перенастраиваю правила редиректа и не могу разобраться
было так:
RewriteEngine On RewriteRule files/download/([^/]+)/(.*).html /download.php?ID=$1&name=$2 [L] RewriteRule files/delete/([^/]+)/(.*) /delete.php?ID=$1&code=$2 [L]
сделал так:
location /files/ { rewrite ^/files/download/([^/]+)/(.*)\.html$ /download.php?ID=$1&name=$2 break; rewrite ^/files/delete/([^/]+)/(.*)$ /delete.php?ID=$1&code=$2 break; }
Но не заработало.
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|