ПРОЕКТЫ 


  АРХИВ 


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]

Re: $arg_



Есть какие-либо идеи?

2009/3/22 Борис Долгов <boris@xxxxxxxxxxx>
Если разобраться с thumb и thumbs и создать нужные директории, то ошибка получается:
[error] 1431#0: *26 directory index of "/var/www/gallery/thumb//" is forbidden, request: "GET /image.php?cat=11&image=10.jpg HTTP/1.1".
То есть, все равно не подставляется требуемое значение.


2009/3/22 Борис Долгов <boris@xxxxxxxxxxx>

Добрый вечер, nginx-ru!
Имеется конфиг:
server
{
    ...
    root /var/www/gallery;
    location /
    {
        proxy_pass http://localhost:80;
    }
    location /image.php
    {
        if ( -e $document_root/thumb/$arg_cat/$arg_image )
        {
            rewrite ^ /thumb/$arg_cat/$arg_image last;
        }
        proxy_pass http://localhost:80;
        proxy_store $document_root/thumbs/$arg_cat/$arg_image;
    }
    location /thumb
    {
    }
}
Цель - кешировать thumb'ы в обход скрипта галлереи, который упорно делает их на лету и зазенден. nginx 0.7.43.
Но $arg_ оказываются пустые при запросе.
В еррор-логе:
2009/03/22 20:05:20 [crit] 1431#0: *23 rename() "/var/lib/nginx/tmp/proxy/6/00/0000000006" to "/var/www/gallery/thumbs//" failed (20: Not a directory) while reading upstream, request: "GET /image.php?cat=11&image=10.jpg HTTP/1.1", upstream: "http://localhost:80/image.php?cat=11&image=10.jpg"
Что я делаю не так? Заранее спасибо.
--
С уважением, Борис Долгов.
icq 77556665
e-mail boris@xxxxxxxxxxx



--
С уважением, Борис Долгов.
icq 77556665
e-mail boris@xxxxxxxxxxx



--
С уважением, Борис Долгов.
icq 77556665
e-mail boris@xxxxxxxxxxx

  • References:
    • $arg_
      • From: Борис Долгов
    • Re: $arg_
      • From: Борис Долгов

 




Copyright © Lexa Software, 1996-2009.