FastDFS整合nginx报错

来源:互联网 发布:图片编辑器软件 编辑:程序博客网 时间:2024/05/04 16:00

FastDFS整合nginx后,nginx一直报错:


[2016-09-22 09:41:21] ERROR - file: ../common/fdfs_http_shared.c, line: 148, param "http.mime_types_filename" not exist or is empty

在网上所有的教程几乎是说要在tracker.conf增加#include http.conf,但增加后还是一直报这个错误


后来,经过仔细查看fastdfs-nginx-module的源文件,发现#include http.conf是写在mod_fastdfs.conf里,然后更改/etc/fdfs/mod_fastdfs.conf,增加#include http.conf,重启nginx解决。


0 0
原创粉丝点击