$arg_

Igor Sysoev is at rambler-co.ru
Mon Mar 23 17:16:11 MSK 2009


On Mon, Mar 23, 2009 at 05:15:44PM +0300, Борис Долгов wrote:

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

Использовать
http://sysoev.ru/nginx/docs/http/ngx_http_proxy_module.html#proxy_cache

> 2009/3/22 Борис Долгов <boris at dolgov.name>
> 
> > Если разобраться с 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 at dolgov.name>
> >
> > Добрый вечер, 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 at dolgov.name
> >>
> >
> >
> >
> > --
> > С уважением, Борис Долгов.
> > icq 77556665
> > e-mail boris at dolgov.name
> >
> 
> 
> 
> -- 
> С уважением, Борис Долгов.
> icq 77556665
> e-mail boris at dolgov.name

-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list