Created
November 21, 2013 11:39
-
-
Save gjuric/7580148 to your computer and use it in GitHub Desktop.
nginx memcache keepalive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ovo mora biti izvan server bloka | |
upstream memcached_backend { | |
server 127.0.0.1:11211; | |
keepalive 50; | |
} | |
# unutar server bloka | |
location /widget/ { | |
.... | |
# umjesto "memcached_pass 127.0.0.1:11211;" | |
memcached_pass memcached_backend; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment