Split words into caracters

Reinis Rozitis r at roze.lv
Tue Apr 2 15:38:51 UTC 2013

> yeah but it works when you have multiple words.

What do you mean by multiple words?

> In my case, there is only one which is 1234567890...DEF (md5 -> 32 chars)
> m=1234567890...DEF
> m[1] = 1
> m[2] = 2
> ..
> m[32] = F

> A mere rewrite is impossible here..
> It seems indeed,

Why not?


It looks somewhat ugly  because of 32 variables (aso because you need to use 
named ones (since $10/$11 ... wouldnt work)).
There are probably much better ways to do this, but as a proof of concept it 

Request to http://someserver/path/aBcdfghjklqwertyuiopas1234567890 gets 
rewritten/translated to:

2013/04/02 18:25:37 [error] 2032#0: *60 open() 
failed (2: No such file or directory), request: "GET 

(obviously error since such file doesnt exist for me)



More information about the nginx mailing list