<div xmlns="http://www.w3.org/1999/xhtml">Добрый день!</div><div xmlns="http://www.w3.org/1999/xhtml">Настроил кеширование nginx</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"><div>proxy_cache_path /var/cache/nginx/piccache levels=2 keys_zone=piccache:15m inactive=15m max_size=200m;</div><div> </div><div>server  {</div><div>    listen   81;</div><div>    proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504 http_403 http_404;</div><div> </div><div><div>    location /pic/ {</div><div>        proxy_cache_valid 200 15m;</div><div>        proxy_cache_key "$request_uri|$request_body";</div><div>        proxy_hide_header "Set-Cookie";</div><div>        proxy_cache_methods POST;</div><div>        proxy_ignore_headers "Cache-Control" "Expires";</div><div>        proxy_cache      piccache;</div><div>        proxy_pass      http://backend;</div></div><div>    }</div><div> </div><div> </div><div>    proxy_set_header        Host $host:$server_port;</div><div>    proxy_set_header        X-Real-IP $remote_addr;</div><div>    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;</div><div>    proxy_set_header        X-Forwarded-Host $host;</div><div>    proxy_set_header        X-Forwarded-Server $host;</div><div>    proxy_set_header        X-Forwarded-Proto $scheme;</div><div> </div><div>}</div><div> </div><div>server  {</div><div>    listen   82;</div><div> </div><div>    proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504 http_403 http_404;</div><div> </div><div>    location /pic/ {</div><div>        proxy_cache_valid 200 15m;</div><div>        proxy_cache_key "$request_uri|$request_body";</div><div>        proxy_hide_header "Set-Cookie";</div><div>        proxy_cache_methods POST;</div><div>        proxy_ignore_headers "Cache-Control" "Expires";</div><div>        proxy_cache      piccache;</div><div>        proxy_pass      http://backend;</div></div><div> </div><div> </div><div>    proxy_set_header        Host $host:$server_port;</div><div>    proxy_set_header        X-Real-IP $remote_addr;</div><div>    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;</div><div>    proxy_set_header        X-Forwarded-Host $host;</div><div>    proxy_set_header        X-Forwarded-Server $host;</div><div>    proxy_set_header        X-Forwarded-Proto $scheme;</div><div> </div><div>}</div><div> </div><div> </div><div>server  {</div><div>    listen   83;</div><div> </div><div>    location /pic/ {</div><div>        proxy_cache_valid 200 15m;</div><div>        proxy_cache_key "$request_uri|$request_body";</div><div>        proxy_hide_header "Set-Cookie";</div><div>        proxy_cache_methods POST;</div><div>        proxy_ignore_headers "Cache-Control" "Expires";</div><div>        proxy_cache      piccache;</div><div>        proxy_pass      http://backend;</div><div>    }</div><div> </div><div>    proxy_set_header        Host $host:$server_port;</div><div>    proxy_set_header        X-Real-IP $remote_addr;</div><div>    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;</div><div>    proxy_set_header        X-Forwarded-Host $host;</div><div>    proxy_set_header        X-Forwarded-Server $host;</div><div>    proxy_set_header        X-Forwarded-Proto $scheme;</div><div> </div><div>}</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">Но почему-то в папке /var/cache/nginx/piccache файлы не создаются, а папка для временных файлов не очищается /var/cache/nginx/proxy_temp</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">Через strace вижу такое</div><div xmlns="http://www.w3.org/1999/xhtml"><div>chmod("/var/cache/nginx/proxy_temp/5/18/0000554185", 0600) = 0</div><div>rename("/var/cache/nginx/proxy_temp/5/18/0000554185", "/var/cache/nginx/piccache/b7/6d45a7319a3cf5d68022b0c8b55147b7") = 4294967294</div><div>fstat(32, {st_mode=S_IFREG|0600, st_size=797, ...}) = 0</div><div>close(31)        </div><div> </div><div>Версия<div>nginx -v</div><div>nginx version: nginx/1.6.2</div><div> </div><div>я так понял у rename это какой то код ошибки 4294967294 нигде не нашел что это значит</div><div>кто может подсказать, в чем проблема</div><div>заранее спасибо.</div></div><div xmlns="http://www.w3.org/1999/xhtml">-- <br />С уважением,</div><div xmlns="http://www.w3.org/1999/xhtml">Сергей Пищулин</div><div xmlns="http://www.w3.org/1999/xhtml"> </div></div>