标签:rewrite $2 pre .com ati serve bre 图片 客户
1、fastdfs安装和配置
2、使用nginx代理fastdfs以及图片裁剪(fastdfs-nginxmodule)
server { listen 8888; location / { root /home/caozhiyuan/fdfsstore/fdfs_storage/data; } location /group1/M00 { root /home/caozhiyuan/fdfsstore/fdfs_storage/data; ngx_fastdfs_module; } location ~* /group1/M00/(.*?)_([0-9]+)X([0-9]+)\.(jpeg|jpg|gif|png)$ { root /home/caozhiyuan/fdfsstore/fdfs_storage/data; set $h $2; set $w $3; rewrite /group1/M00/(.*?)_([0-9]+)X([0-9]+)\.(jpeg|jpg|gif|png)$ /$1.$4 break; image_filter_buffer 10M; image_filter resize $h $w; } }
3、.net fastdfs客户端使用(https://github.com/caozhiyuan/FastDFSNetCore)
标签:rewrite $2 pre .com ati serve bre 图片 客户
原文地址:https://www.cnblogs.com/caozhiyuan/p/9426454.html