Finding the length of a strength in an nginx.conf file -
There is a problem with my $ memcached_keys which is too long in my .conf file for nginx. I use the MMCD module But some of my URLs are too long. I am in the process of trying the user MD5 hash of the URL, but in the meanwhile I was just thinking that in a way I could check the length of the string stored in a variable.
:
set $ memcached_key "byp- $ uri"; If $ ($ ARG) set $ memcached_key "byp- $ uri? $ Args"; } If (lane ($ memcache_key) & lt; 250) {memcached_pass 127.0.0.1:121211; Error_page 404 = @cache_miss; Error_page 502 = @cache_miss; } And go to {@cache_miss}; }
I am not positive, but I do not think it can be done NGN Within the config language I suspect that if it is in existence then it will be documented, and I will not see anything.
Comments
Post a Comment