Created
January 28, 2010 18:37
-
-
Save dylanz/289005 to your computer and use it in GitHub Desktop.
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
location ~* \.(json)$ { | |
set memcached_key $key; | |
memcached_pass $uri; | |
echo_location_async /json_available; | |
error_page 404 @proxy; | |
} | |
location /json_available { | |
echo_duplicate 1 "$arg_callback("; | |
echo_location_async "/json_memcached"; | |
echo_duplicate 1 ")"; | |
} | |
location /json_memcached { | |
set memcached_key $key; | |
memcached_pass $uri; | |
error_page 404 @proxy; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment