【问题标题】:duplicate MIME type "text/html"?重复 MIME 类型“text/html”?
【发布时间】:2011-09-22 11:01:55
【问题描述】:

我在 Nginx 配置文件中有这个

gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

但是 Nginx 启动时报错

[warn]: duplicate MIME type "text/html" in /etc/nginx/nginx.conf:25

实际上与text/html 重复的是什么?是text/plain吗?

【问题讨论】:

    标签: nginx mime-types


    【解决方案1】:

    对于选项gzip_types,默认情况下始终包含mime-type text/html,因此您无需明确指定。

    【讨论】:

    猜你喜欢
    • 2018-12-13
    • 2019-08-06
    • 2020-05-31
    • 1970-01-01
    • 2014-05-27
    • 1970-01-01
    • 1970-01-01
    • 2021-11-10
    • 2023-02-01
    相关资源
    最近更新 更多