检查配置文件时提示:nginx: [warn] duplicate MIME type "text/html" in /home/web/nginx/inc/gzip.conf:9

[root@localhost sbin]# ./nginx -t -c /home/web/nginx/nginx.conf
nginx: [warn] duplicate MIME type "text/html" in /home/web/nginx/inc/gzip.conf:9
nginx: the configuration file /home/web/nginx/nginx.conf syntax is ok
nginx: configuration file /home/web/nginx/nginx.conf test is successful

解决方式:去掉下面一行中的“text/html”。

原因:text/html根本就不需要写的,gzip默认就会压缩它的,只不过以前的nginx版本不提示这个警告而已,新版本的会出这个警告。

最新文章

  1. django学习记录
  2. 数据结构(C语言第2版)----时间复杂度和单链表
  3. Android成长日记-Activity
  4. AutoFac使用~IOC容器(DIP,IOC,DI)
  5. ubuntu14.04网络设置
  6. 基于存储过程的MVC开源分页控件
  7. 顶层const和底层const
  8. python 实现文本文件中的数字按序排序(位操作,低内存占用)
  9. beef配合ettercap批量劫持内网的浏览器
  10. 微软跨平台ORM框架之EFCore — 约定与属性映射
  11. debug和release版本的区别
  12. @Conditional 原理
  13. Kali linux 2016.2(Rolling)里安装OpenVAS
  14. Python-多线程之消费者模式和GIL全局锁
  15. Spring Boot 商城项目
  16. linux下用gcc如何生成预处理、汇编等文件
  17. 算法笔记_155:算法提高 概率计算(Java)
  18. canvas绘制路径
  19. 绘图、Core Animation与硬件架构
  20. linux 项目自动部署脚本

热门文章

  1. 关于QQ的NABCD模型
  2. The import * cannot be resolved
  3. Character Encoding Issues for tomcat
  4. 用Axios Element 实现全局的请求 loading
  5. [转帖]Asp.Net MVC EF各版本区别
  6. Windows平台下面Oracle11.2.0.1 升级Oracle11.2.0.4 的简单步骤
  7. laravel 共享session问题总结
  8. 如何隐藏Win7登录界面的administrator用户名恢复
  9. matplotlib之scatter绘制散点
  10. BZOJ4808马——二分图最大独立集