[code]
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;
....
[/code]
[code]
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;
}
[/code]
выдает:
# nginx -s reload
[emerg]: the shared memory zone "zone2" is already declared for a different use in /usr/local/etc/nginx/virtual/catalog.***.ru.conf:16
В чем причина?