Is there a way to strtolower() an nginx env var? For example I want to do something like:
set $memcached_key strtolower($request_uri);
I want to do this because when storing values into memcache, I want to make the key the lowercase.
Also, I just want to make the part of the URI before ‘?’ lowercase, not the entire URI.
Ex:
/some/ThING/soemthing.php?key=VaLuE -> /some/thing/soemthing.php?key=VaLuE
The only thing I have found that seems to work is using the perl module to create a function that returns the value you want.