咻咻ing 2019-12-21
fdfs 存储节点storage安装nginx,修改nginx配置文件
location /group1/M00/ { root /fdfs/storage/data; if ($arg_attname ~ "^(.+)") { #设置下载 add_header Content-Type application/x-download; #设置文件名 add_header Content-Disposition "attachment;filename=$arg_attname"; } ngx_fastdfs_module; }
例: 192.168.100.100:8888/group1/M00/00/15/dgECTl3d4CuAqGuAADaHFkU0005.jpg?filename=hello.jpg