nginx 中 duplicate MIME type "text/html"问题的解决办法
2012-02-17 15:37
549 查看
nginx升级到 0.8.53 版本以及更高的版本之后,使用老的配置会出现duplicate MIME type "text/html"问题的解决办法
这个报错其实并不影响什么东西,只是老版本的没有这个报警,新的是有这个警告。
nginx升级后,用原来的配置启动提示:Starting nginx server (nginx): [warn]: duplicate MIME type "text/html" in /usr/local/nginx/conf/nginx.conf:56
找到第56行的配置是:
gzip_types text/plain text/html text/javascript text/xml text/css application/x-javascript application/xml;
解决办法:
从配置文件中去掉text/html.
本文出自 “每天进步一点点!” 博客,请务必保留此出处http://xiahongyuan.blog.51cto.com/906214/782143
这个报错其实并不影响什么东西,只是老版本的没有这个报警,新的是有这个警告。
nginx升级后,用原来的配置启动提示:Starting nginx server (nginx): [warn]: duplicate MIME type "text/html" in /usr/local/nginx/conf/nginx.conf:56
找到第56行的配置是:
gzip_types text/plain text/html text/javascript text/xml text/css application/x-javascript application/xml;
解决办法:
从配置文件中去掉text/html.
本文出自 “每天进步一点点!” 博客,请务必保留此出处http://xiahongyuan.blog.51cto.com/906214/782143
相关文章推荐
- nginx升级到 0.8.53 之后,使用老的配置出现duplicate MIME type "text/html"问题的解决办法
- niginx:duplicate MIME type "text/html" in nginx.conf 错误(转载)
- duplicate MIME type "text/html" in nginx.conf的根源
- "响应消息的内容类型 text/html; charset=utf-8 与绑定(text/xml; charset=utf-8)的内容类型不匹配。"问题的解决办法
- nginx gzip duplicate MIME type “text/html”
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- input type="file" 选取文件路径时出现fakepath问题IE浏览器解决办法
- The content of element type "web-app" must match……问题之解决办法
- response.setContentType("text/html;charset=utf-8")后依然乱码的解决方法
- 关于css未被载入问题--->因为它的 MIME 类型 "text/html" 不是 "text/css"。
- nginx css文件Content-Type为text/html 问题解决
- Eclipse Android开发遇到:"The type org.apache.http.HttpResponse cannot be resolved."问题的解决办法
- 从后台action传过来的字符串不能被解析html代码 解决办法和struts2 里escape="false"的问题
- 关于response.setContentType("text/html; charset=UTF-8");乱码问题
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- The content of element type "web-app" must match……等 问题之解决办法
- The content of element type "web-app" must match……问题之解决办法
- The content of element type "web-app" must match……问题之解决办法
- Solr 6.3 Expected mime type application/octet-stream but got text/html解决方法
- 设置android:inputType="textPassword"失效的解决办法