nginx and memcached

Istvan Szukacs leccine at
Sun Jul 20 21:45:56 MSD 2008

Hi folks!

I try to use nginx with memcached with less success, maybe this is just 
a well known issue but i did not find anything in google:


        location / {

            set  $memcached_key  $uri;
            default_type      text/html;
            error_page        404 = /fallback;

            location = /fallback {
              root   /usr/local/www/nginx-dist/;
              index  index.html index.htm;


error log in debug mode:

2008/07/20 13:52:43 [error] 73685#0: *5 memcached sent invalid response: 
"marugoto_end" while reading response header from upstream, client: 
xx.xx.116.179, server:, request: "GET / HTTP/1.1", 
upstream: "memcached://", host: ""


# nc -v 11212
Connection to 11212 port [tcp/*] succeeded!

any suggestion?

thanx in advance


More information about the nginx mailing list