Welcome! Log In Create A New Profile

Advanced

Re: Memcached module using unix sockets

August 29, 2009 07:01AM
On Fri, Aug 28, 2009 at 05:19:55PM -0400, bryanp wrote:

> 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 {
> proxy_pass http://127.0.0.1:8000;
> }

try_files parameters can be files only, except the last, fallback parameter.
As to using local (and not only) memcached, it's much better to use nginx's
proxy_cache.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Memcached module using unix sockets

bryanp August 28, 2009 05:19PM

Re: Memcached module using unix sockets

Igor Sysoev August 29, 2009 07:01AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 280
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready