ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: nginx-ru@xxxxxxxxx
  • Subject: как использовать memcache с ngin x
  • From: "alexch" <nginx-forum@xxxxxxxx>
  • Date: Tue, 20 Dec 2011 12:44:52 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=Co1d2UKenAEcL/DAa8MkOBw/oobnzPfADdOO478w2Zk=; b=AOj8nVUr6fTGvJ7IHAXEsJQMp3+OrGfSkuIKC+TH1nVoFWT2Cs/cbp1K7qeV57JaZggcPzuE4Ikh65Jj/LXkBItjvAgonYxqjdq2XBbCP8GfGrgPhzjth/jzNAaw1Ae8;

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 mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.