- 论坛徽章:
- 0
|
本帖最后由 tgnan 于 2013-06-10 18:28 编辑
各位:
目前在测试使用FDFS结合Nginx时,遇到无法下载文件的问题。
部署情况:
192.168.12.160 Tracker Server Nginx+mod_fastdfs_nginx
storage和tracker部署在一起
版本情况:
FastDFS V4.06
nginx-1.5.1
libevent-2.0.21
fastdfs-nginx-module_v1.15
fdfs_test本机测试,上传正常,但不能下载。
浏览器里的nginx提示如下:
400 Bad Request
nginx/1.5.1
nginx日志提示如下:
ngx_http_fastdfs_process_init pid=2432
[2013-06-08 20:10:55] ERROR - file: ../common/fdfs_global.c, line: 52, the format of filename "group1/M00/00/00/wKgMoFGzH0SAYDnzAAAM0-7zv4I974.cfg" is invalid
2013/06/08 20:10:55 [error] 2432#0: *2 open() "/usr/local/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.75.184, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.12.160:8080"
[2013-06-08 20:20:49] ERROR - file: ../common/fdfs_global.c, line: 52, the format of filename "group1/M00/00/00/wKgMoFGzH0SAYDnzAAAM0-7zv4I974.cfg" is invalid
2013/06/08 20:20:49 [error] 2432#0: *4 open() "/usr/local/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.75.184, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.12.160:8080"
[2013-06-08 20:24:56] ERROR - file: ../common/fdfs_global.c, line: 52, the format of filename "group1/M00/00/00/wKgMoFGzIZeAY9siAAAM0-7zv4I058.cfg" is invalid
2013/06/08 20:24:56 [error] 2432#0: *6 open() "/usr/local/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.75.184, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.12.160:8080"
nginx.config配置如下:
server {
listen 8080;
server_name localhost;
location /group1/M00/ {
ngx_fastdfs_module;
}
}
server {
listen 8888;
location /group1/M00/ {
root /opt/fastdfs/data;
ngx_fastdfs_module;
}
}
望指教!!!
|
|