开发者社区> 问答> 正文

fastDFS上传成功,但是访问404

我用fastDFS上传成功了,但是访问出现404!
nginx配置

user root;
worker_processes 1;

events {

worker_connections  1024;

}

http {

include       mime.types;
default_type  application/octet-stream;
sendfile        on;
keepalive_timeout  65;
server {
    listen       80;
    server_name  xx.xx.xx.xx;
    location /group1/M00/ {
        #root   html;
        #index  index.html index.htm;
        #root /home/fastdfs;
        ngx_fastdfs_module;
    }
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
}

}

mod_fastdfs.conf

tracker_server=xx.xx.xx.xx:22122


日志

2017/08/18 16:23:12 [emerg] 2061#0: unknown directive "ngx_fastdfs_module" in /mytar/nginx/conf/nginx.conf:47
2017/08/18 16:23:18 [error] 16832#0: *1632 open() "/mytar/nginx/html/home/fastdfs/storage_path/data/00/00/rBF6tFmWnTyAUBxWAABPAO8BNMo002_big.jpg" failed (2: No such file or directory), client:xx.xx.xx.xx, server: xx.xx.xx.xx, request: "GET /home/fastdfs/storage_path/data/00/00/rBF6tFmWnTyAUBxWAABPAO8BNMo002_big.jpg HTTP/1.1", host: "xx.xx.xx.xx"
2017/08/18 16:23:51 [error] 16832#0: *1632 open() "/mytar/nginx/html/home/fastdfs/storage_path/data/00/00/rBF6tFmWnTyAUBxWAABPAO8BNMo002_big.jpg" failed (2: No such file or directory), client: xx.xx.xx.xx, server: xx.xx.xx.xx, request: "GET /home/fastdfs/storage_path/data/00/00/rBF6tFmWnTyAUBxWAABPAO8BNMo002_big.jpg HTTP/1.1", host: "xx.xx.xx.xx"

展开
收起
colin_xun 2017-08-18 16:49:28 9115 0
1 条回答
写回答
取消 提交回答
  • 阿里云论坛版主,QQ 1978638808

    灭0. 建议提交工单。

    2019-07-17 21:30:27
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载