nginx启动mime.types报错
来源:互联网 发布:电信网络玩网通区 编辑:程序博客网 时间:2024/05/22 08:32
报错提示:
[root@iZ28rvl9qn3Z nginx]# nginx -t -c /etc/nginx1.8.0.conf
nginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/mime.types:1300
nginx: configuration file /etc/nginx1.8.0.conf test failed
解决方法:
原来在nginx.conf 文件里,对于 include mime.types; 加载有误。
因为我把nginx.conf 放在/etc/nginx.conf
include mime.types; 实际上是加载了 /etc/mime.types
但/etc/mine.types 并不是nginx所要包含的文件,只需修改下路基即可。
改为:include /usr/local/nginx1.8.0/conf/mime.types;
well done
0 0
- nginx启动mime.types报错
- nginx中的MIME.types的作用
- nginx中的MIME.types的作用
- nginx启动报错
- Mime Types
- MIME Types
- MIME Types
- Mime Types
- MIME Types MIME 类型
- MIME Types MIME 类型
- nginx启动报错找不到nginx.pid
- mime.lookup报错
- 网页类型Mime Types
- MIME types in IIS
- MIME Media Types
- Microsoft Office MIME Types
- Microsoft Office MIME Types
- /etc/mime.types
- 自然图像抠图/视频抠像技术梳理(image matting, video matting)
- 第十三周-验证分块查找的算法
- shell 批处理文件
- cf(420A)
- #宏定义的使用
- nginx启动mime.types报错
- 第十二周项目2操作用邻接表存储的图
- Android View的基本信息
- python对文件进行逆序重命名
- SQL Server 2008 在Windows Server 2008上的访问配置 Windows 防火墙
- ucontext实现协程
- js获取图片宽高
- 黑马程序员——C语言——位运算符和变量存储原理
- Android Studio导入第三方jar包或依赖工程的方法