1 背景
FastDFS-Nginx:http://192.168.1.33:9001
业务服务:http://192.168.1.34:5001/zs/api/v1
下载接口:http://192.168.1.34:5001/zs/api/v1/file/bytes
前置Nginx(外部访问都通过这个Nginx):http://localhost:8088
1.1 FastDFS与Nginx
项目中有使用FastDFS,并使用Nginx访问FastDFS中的附件(通过fastdfs-nginx-module模块实现)。
假定Nginx访问地址为http://192.168.1.33:9001,要访问的FastDFS附件为group1/M00/00/1B/rBCEIWA2N3uAQGuYAAYFeSu7aks391.jpg。
则最终访问附件的路径为: