memache key

Sean Allen sean at ardishealth.com
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

   server_name x.co.uk;
   server_name www.x.co.uk;

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

we could end up with memcache keys for both.

ie i DO want

www.x.co.uk/home/index.html?t=ed

and

x.co.uk/home/index.html?t=ed

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