Re: Кеширование FastCGI запросов

spall nginx-forum at nginx.us
Wed Oct 7 08:23:56 MSD 2009


http {
    include       mime.types;
    default_type  application/octet-stream;

    proxy_cache_path  /usr/local/etc/nginx/cache/zone1  levels=1:2   keys_zone=zone1:250m;
    proxy_cache_path  /usr/local/etc/nginx/cache/zone2  levels=1:2   keys_zone=zone2:250m;
    proxy_temp_path  /usr/local/etc/nginx/temp;
    ....



 location ~ \.php
        {

                fastcgi_cache_key  $scheme$proxy_host$uri$is_args$args;
                fastcgi_cache zone2;
                fastcgi_cache_valid   200 302  24h;
                fastcgi_cache_min_uses 10;

                fastcgi_pass  127.0.0.1:7000;
                fastcgi_index index.php;
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME  /usr/local/www/applications/catalog.***.su/public/index.php;
                fastcgi_param PATH_INFO $fastcgi_script_name;

        }



выдает:

# nginx -s reload
: the shared memory zone "zone2" is already declared for a different use in /usr/local/etc/nginx/virtual/catalog.***.ru.conf:16


В чем причина?

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,11465,11727#msg-11727






More information about the nginx-ru mailing list