Cache does not work

Igor Sysoev is at rambler-co.ru
Wed Oct 14 13:59:44 MSD 2009


On Wed, Oct 14, 2009 at 01:07:06PM +0400, Daniel Podolsky wrote:

> День добрый!
> 
> Win Server 2003 R2, nginx 0.8.19
> 
> Для определенной локации написано
>  proxy_temp_path  d:/nginx/temp/proxy  1 2;
>  proxy_cache_path d:/nginx/cache       levels=1:2 keys_zone=backend:10m;
>  proxy_cache      backend;
> #
> proxy_set_header   X-Real-IP       $remote_addr;
> proxy_set_header   Host            $http_host;
> proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_cache_valid 10m;
> proxy_pass http://backend;
> log_format cache_log '$remote_addr - $remote_user [$time_local]
> "$request" $upstream_cache_status';
> access_log d:/nginx/logs/cache.log cache_log;
> 
> Проксирование работает прекрасно.
> Кеширование - не работает, в логе MISS на каждый запрос.
> В error_log - много вот такого:
> 2009/10/14 01:44:29 [crit] 3256#3264: *559 CreateDirectory() "d:"
> failed (5: Access is denied) while reading upstream, ...
> 
> Куда глядеть, скажите пожалуйста?
> 
> PS
> Директива error_log

Попробуй вот это: http://sysoev.ru/tmp/nginx-0.8.20.zip , я его удалю
после того, как скачаешь.

PS, с удивлением обнаружил, что gmail не принимает zip'ы.


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





More information about the nginx-ru mailing list