问题描述
- nginx fastdfs 配置后 上传成功 访问报404 求大神协助
-
nginx 配置 location /group1/M00 {
root /home/fastdfs/data;
ngx_fastdfs_module;
}# the group name of the local storage server
group_name=group1
if the url / uri including the group name
set to false when uri like /M00/00/00/xxx
set to true when uri like ${group_name}/M00/00/00/xxx, such as group1/M00/xxx
default value is false
url_have_group_name = true
path(disk or mount point) count, default value is 1
must same as storage.conf
store_path_count=1
store_path#, based 0, if store_path0 not exists, it's value is base_path
the paths must be exist
must same as storage.conf
store_path0=/data/fastdfs
#store_path1=/home/yuqing/fastdfs1
解决方案
检查一下mod_fastdfs.conf 的 url_have_group_name 是否为 ture
检查一下storage服务器的各个配置文件:设置的存储路径是否一致
时间: 2024-09-13 06:18:28