Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: помогите переделать правило rewrite
- To: nginx-ru@xxxxxxxxx
- Subject: Re: помогите переделать правило rewrite
- From: "Denis Kot" <denis.kot@xxxxxxxxx>
- Date: Fri, 16 May 2008 15:29:40 +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=91KhNXhUlK5hCqmIUjbuoCeGYFtHl7PNhQbKsmqmqhI=; b=CgptMiWaSCgnKzs0RwOannbxftNs3sTAHUfJ0Y38pPXXgVtl0Wqi+/FnYeGpbeNtx5IPHV6ENDc62iAOBF153QCAhnacRswgQiBnmIT74JifqIYFO3+nmo8bQrJoX9mNUIYHkUaweicFjuIjDXgaDGxni4i27bjlsQRVYWOzCNU=
- 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=ZUf2mSB6KcMx6+dIodbg4mR0gt2x7mmhVK/jzmClrRf3qxf1M3eMmkeUjZBBiS1+EiyQ9MHHz/SuiB9AnAb8MPVbpKpiiINTZL/rIxc5eCaHLtIGgzY9wZ6JPxq7pHS5LtCa8EWHntYnkTHJZ5UWg9147QptIysko+RzOD8c3ds=
- In-reply-to: <3cfad9ca0805160454r7b8c35d9qf17463869368664@xxxxxxxxxxxxxx>
- References: <3cfad9ca0805160454r7b8c35d9qf17463869368664@xxxxxxxxxxxxxx>
хм, вроде начало отрабатывать, но теперь в огнелисе предлагает
сохранить файл, а в IE возвращает код php.
16 мая 2008 г. 14:54 пользователь Denis Kot <denis.kot@xxxxxxxxx> написал:
> есть вот такой вот .htaccess
> RewriteRule
> ^([0123456789]*)-([0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_]*)\.png$
> torrentbar.php?id=$1&style=$2 [L]
> RewriteRule
> ^(.*)/([0123456789]*)-([0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_]*)\.png$
> torrentbar.php?id=$2&style=$3 [L]
>
> RewriteRule ^(.*)/([0123456789]*)\.png$ torrentbar.php?id=$2 [L]
> RewriteRule ^([0123456789]*)\.png$ torrentbar.php?id=$1 [L]
>
> попробывал сделать так:
> location /forum/torrentbar/ {
> rewrite
> ^/forum/torrentbar/([0123456789]*)-([0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_]*)\.png$
> /forum/torrentbar/torrentbar.php?id=$1&style=$2 break;
> rewrite
> ^/forum/torrentbar/(.*)/([0123456789]*)-([0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_]*)\.png$
> /forum/torrentbar/torrentbar.php?id=$2&style=$3 break;
> }
>
> в логах:
> 2008/05/16 16:48:01 [error] 8779#0: *15237 open()
> "/home/sites/site.by/www/forum/torrentbar/3-default_cyan.png" failed
> (2: No such file or directory), client: 1.2.22.22, server: site.by,
> URL: "/forum/torrentbar/3-default_cyan.png", host: "site.by"
> в браузере просто белая пустая страница
>
> --
> Denis Kot
> denis?jabber.org.by
> ICQ: 13680126
> Mobil: +375 29 6-1234-78
>
--
Denis Kot
denis?jabber.org.by
ICQ: 13680126
Mobil: +375 29 6-1234-78
|