Welcome! Log In Create A New Profile

Advanced

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

December 20, 2011 12:44PM
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;

}
Subject Author Posted

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

alexch December 20, 2011 12:44PM

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

Maxim Dounin December 20, 2011 12:58PM

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

alexch December 20, 2011 01:01PM

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

Maxim Dounin December 20, 2011 01:06PM

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

alexch December 20, 2011 01:09PM

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

alexch December 20, 2011 01:21PM

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

Maxim Dounin December 20, 2011 01:26PM

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

alexch December 21, 2011 02:34AM

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

Aleksandr Sytar December 20, 2011 02:12PM

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

Aleksandr Sytar December 20, 2011 02:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 63
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready