Memcached module using unix sockets

bryanp nginx-forum at
Sat Aug 29 01:19:55 MSD 2009

I configured nginx to try memcached for the page before passing the request to the backend.  However, the memcached module cannot find the data at any key given.  My assumption is that the module does not support unix sockets.  Is this true?

Configuration example:

  location / {
     try_files @memcached @django;

  location @memcached {
    set $memcached_key  ngx$request_uri;
    memcached_pass      unix:/Users/auser/memcached.sock;
    default_type        text/html;

  location @django {

Posted at Nginx Forum:,5279,5279#msg-5279

More information about the nginx mailing list