memache key

Sean Allen sean at
Mon Mar 17 23:05:26 MSK 2008

currently we use:

   set $memcached_key "$uri?$args";

for the key.

put that is causing a couple issues.

if we want to use, full hostname, what is the proper variable to put?

   set $memcached_key "$server_name/$uri?$args";


so that if we have


and the url was /home/index.html?t=ed

we could end up with memcache keys for both.

ie i DO want


to be created as required.

i'm asking because i thought i saw something go by in an email or in  
release notes
related to which server name ends up in $server_name

More information about the nginx mailing list