我用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"
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。