tofacebook.com -专业IT技术社区(指牛堂) 【百家号】脸书百科,nginx: [warn] duplicate MIME type "text/html"错误 Web程序 - 指牛堂-专业IT技术平台
77°

【百家号】脸书百科,nginx: [warn] duplicate MIME type "text/html"错误 Web程序

标签:gzip   警告   sbin   dup   新版   pytho   pre   新版本   nta   

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

[[email protected] 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版本不提示这个警告而已,新版本的会出这个警告。

nginx: [warn] duplicate MIME type "text/html"错误

标签:gzip   警告   sbin   dup   新版   pytho   pre   新版本   nta   

原文地址:https://www.cnblogs.com/xzlive/p/9379384.html


本文由百家号/熊掌号作者上传并发布,百家号仅提供信息发布平台。文章仅代表作者个人观点,不代表百度立场。

已有 0 条评论

    我有话说: