$arg_

Борис Долгов boris at dolgov.name
Sun Mar 22 20:13:38 MSK 2009


Если разобраться с 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20090322/ed55cfe5/attachment.html>


More information about the nginx-ru mailing list