nginx: [warn] duplicate MIME type "text/html"错误
2024-08-28 13:05:31
检查配置文件时提示: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版本不提示这个警告而已,新版本的会出这个警告。
最新文章
- django学习记录
- 数据结构(C语言第2版)----时间复杂度和单链表
- Android成长日记-Activity
- AutoFac使用~IOC容器(DIP,IOC,DI)
- ubuntu14.04网络设置
- 基于存储过程的MVC开源分页控件
- 顶层const和底层const
- python 实现文本文件中的数字按序排序(位操作,低内存占用)
- beef配合ettercap批量劫持内网的浏览器
- 微软跨平台ORM框架之EFCore — 约定与属性映射
- debug和release版本的区别
- @Conditional 原理
- Kali linux 2016.2(Rolling)里安装OpenVAS
- Python-多线程之消费者模式和GIL全局锁
- Spring Boot 商城项目
- linux下用gcc如何生成预处理、汇编等文件
- 算法笔记_155:算法提高 概率计算(Java)
- canvas绘制路径
- 绘图、Core Animation与硬件架构
- linux 项目自动部署脚本
热门文章
- 关于QQ的NABCD模型
- The import * cannot be resolved
- Character Encoding Issues for tomcat
- 用Axios Element 实现全局的请求 loading
- [转帖]Asp.Net MVC EF各版本区别
- Windows平台下面Oracle11.2.0.1 升级Oracle11.2.0.4 的简单步骤
- laravel 共享session问题总结
- 如何隐藏Win7登录界面的administrator用户名恢复
- matplotlib之scatter绘制散点
- BZOJ4808马——二分图最大独立集