как использовать memcache с nginx

alexch nginx-forum на nginx.us
Вт Дек 20 17:44:52 UTC 2011


freebsd 8/nginx последний

чтото не могу понять почему он не берёт
из мемкеша ???

2011/12/20 19:37:13 [info] 23563#0: *396903 key: "css.php" was not found
by memcached while reading response header from upstream, client:
91.198.116.5, server:xxxxxx.ua, request: "GET /css.php?13,css_print
HTTP/1.1", upstream: "memcached://127.0.0.1:11211", host: "xxxxxxxx.ua",
referrer: "http://xxxxxxxx.ua/read.php?13,839318"
2011/12/20 19:37:17 [info] 23563#0: *396903 key:
"/templates/emerald/images/menu-background-highlight.png" was not found
by memcached while reading response header from upstream, client:
91.198.116.5, server: xxxxxxx.ua, request: "GET
/templates/emerald/images/menu-background-highlight.png HTTP/1.1",
upstream: "memcached://127.0.0.1:11211", host: "xxxxxxxxx.ua", referrer:
"http://xxxxxxxx.ua/read.php?13,839318"

server {
        listen        80 default accept_filter=httpready;
        server_name   xxxxxxx.ua;
        root         /usr/home/xxxxxxxx.ua/www/;

error_log  /var/log/nginx/_error.log  debug;
#access_log  /var/log/nginx/_access.log;
        location / {
        index index.html index.php;
        set $memcached_key $uri;
        memcached_pass  127.0.0.1:11211;
        default_type text/html;
        error_page 404 405 = @fallback;
        }
        location ~ \.php$ {
        default_type text/html;
        set $memcached_key $uri;
        memcached_pass  127.0.0.1:11211;
        error_page 404 405 = @fallback;
        }
        location @fallback {
        fastcgi_pass unix:/tmp/php-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME
/usr/home/xxxxxxx.ua/www$fastcgi_scr
ipt_name;
        include fastcgi_params;

        }

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



Подробная информация о списке рассылки nginx-ru