标签:
set $fastdfs "0"; if ($args ~* "^wh=([\d]+)x([\d]+)") { set $wd $1; set $hd $2; set $fastdfs "01"; } if ($fastdfs = "01") { rewrite (.*) /rsz${wd}x${hd}/$1 last; } location ~* /rsz([\d]+)x([\d]+)/(.*)\.(jpg|png|gif|jpeg) { proxy_pass http://127.0.0.1:1000/web-static/$3.$4; include proxy.conf; image_filter resize $1 $2; image_filter_jpeg_quality 95; image_filter_transparency on; image_filter_buffer 5M; } location ~* /img01_([\d]+)x([\d]+)/group1/M00/(.*) { alias /data/fastdfs/data/$3; image_filter resize $1 $2; image_filter_jpeg_quality 95; image_filter_transparency on; image_filter_buffer 5M; }
标签:
原文地址:http://my.oschina.net/wjgood/blog/501908