ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
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: "Denis Kot" <denis.kot@xxxxxxxxx>
  • Date: Fri, 16 May 2008 14:54:17 +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:mime-version:content-type:content-transfer-encoding:content-disposition; bh=CYzRpwzZndwwcFkg0Xl97kEIkBf8iaKQSFHjOlNNb9Y=; b=LUtE+edsG/dpcLMwTJ8VtOze0q4ymV0ouILkqo5I5MRDfnoih+FidV03G23sO04JBhICvIWw5d1pb4u2zZ47WmPwJiLauQxP0OtYR5D+fAv4BEwe82ii7JG1XpDvQafiqR5NqwtaI9S/C42lYGm3uUs8i7jvmPYhZJC6Sh8PMnA=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=dWhbQ3thQgWNhdjsbn/q23N3AUjfSlzBN/duJCd/VQ6ccTIZeVJY93cbMGZvhbOnA6umoGJEUg8TMm68SZNzSdvCpr2ATpIsVniOr95+YA0aD7GmXd+dkHg8qRpCxJZR0yvCJ/UrS/PzCVKHGk72gZ9Vly3WeRJfq0tPEcA8xHk=

есть вот такой вот .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


 




Copyright © Lexa Software, 1996-2009.