Hello,
I have a problem with my configuration and i need your help please ;)
I have the following URL that points to my nginx : http://blablabla/folder/cmm/200/aHR0cDovL2F6MjMyNjIudm8ubXNlY25kLm5ldC90cGltYWdlcy81OGE0NTVlNjYzYzNmYmM2OWMwYThjMTJlMGIwYzllOF9taW5pXzguanBn.jpg
I need to extract the following section (it's Ok): aHR0cDovL2F6MjMyNjIudm8ubXNlY25kLm5ldC90cGltYWdlcy81OGE0NTVlNjYzYzNmYmM2OWMwYThjMTJlMGIwYzllOF9taW5pXzguanBn
Then do a decode_base64 of this string extracted (it's Ok): http://az23262.vo.msecnd.net/tpimages/58a455e663c3fbc69c0a8c12e0b0c9e8_mini_8.jpg
And for finish, do a proxy_pass to this new URL (with addition in the cache)
****************** Here is my code ***********
location /folder {
if ( $uri ~ "^/folder/cmm/200/(.*)\.jpg" ) {
set $filename $1;
set_decode_base64 $url_partenaire $filename;
#echo "$url_partenaire"; => print : http://az23262.vo.msecnd.net/tpimages/58a455e663c3fbc69c0a8c12e0b0c9e8_mini_8.jpg
proxy_pass "$url_partenaire";
however I'm stuck at this stage now
******************* error_log nginx ******************
2013/11/25 11:50:02 [error] 29705#0: *5 no resolver defined to resolve az23262.vo.msecnd.net, client: 10.200.12.119, server: blablabla, request: "GET /folder/cmm/200/aHR0cDovL2F6MjMyNjIudm8ubXNlY25kLm5ldC90cGltYWdlcy81OGE0NTVlNjYzYzNmYmM2OWMwYThjMTJlMGIwYzllOF9taW5pXzguanBn.jpg HTTP/1.1", host: "blablabla", referrer: "http://blablabla/folder/cmm/200/aHR0cDovL2F6MjMyNjIudm8ubXNlY25kLm5ldC90cGltYWdlcy81OGE0NTVlNjYzYzNmYmM2OWMwYThjMTJlMGIwYzllOF9taW5pXzguanBn.jpg"
Thank you for your help