ssi problem / memcached
Jodok Batlogg
jodok at lovelysystems.com
Fri Oct 19 22:22:25 MSD 2007
hi igor,
thanks for your patch.
unfortunately we still have some troubles with memcached. the problem
is that spaces in keys of memcached are not allowed at all. in our
urls,.. we still need to support spaces.
finally we had the idea that it would be best to use the md5 hash of
the url as key in memcached.
i'm wondering if it's possible to have md5 function when generating
the memcached_key?
thanks
jodok
ps.: probably something like this (note the memcached_key line)
rewrite ^(.*)$ /memcached$1 last;
location ^~ '/memcached/' {
rewrite ^/memcached/(.*)$ $1;
# set $memcached_key books-de-beta/$uri$is_args$args;
set $memcached_key books-de-beta/$uri$is_args$args md5;
# ^ would be good to have md5
memcached_pass 127.0.0.1:11211;
default_type text/html;
# cache control:
# we use no-cache for all memcache entries.
expires -1;
# send it to zope as fallback
error_page 404 = /zope/$uri;
error_page 502 = /zope/$uri;
internal;
}
On 17.10.2007, at 13:44, Igor Sysoev wrote:
> On Mon, Oct 15, 2007 at 08:32:41AM +0200, Jodok Batlogg wrote:
>
>> is there a reason that ssi escapes the all the urls? imho it should
>> not escape them.
>> if you request some%20url%20with%20spaces - it's escaping again.
>> we're using unescaped utf-8 strings to access memcached - the
>> behavior of the ssi module should behave the same way.
>
> Try the attached patch: it unescapes SSI include, then escapes it
> again
> if the including goes to proxy.
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/<patch-0.6.14.2.txt>
--
"In the face of ambiguity, refuse the temptation to guess."
-- The Zen of Python, by Tim Peters
Jodok Batlogg, Lovely Systems
Schmelzhütterstraße 26a, 6850 Dornbirn, Austria
phone: +43 5572 908060, fax: +43 5572 908060-77
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2454 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20071019/5a63b419/attachment.bin>
More information about the nginx
mailing list