【问题标题】:Internal Server Error 500.19 Plesk / IIS内部服务器错误 500.19 Plesk / IIS
【发布时间】:2016-12-30 15:34:52
【问题描述】:

我今天将 Plesk 12.0 升级到 12.5,遇到了一个硬错误,导致我的网站无法访问。

如果我在服务器上打开网站,我会收到以下错误消息:

它表示不能添加第二个类型为“mimeType”且键属性为 .woff 的条目。

有人可以帮我解决这个错误吗?

更新 我删除了文件中调用错误的条目,现在它又可以工作了。我在问自己:这是删除此错误的正确方法吗?不希望将来因此而有任何进一步的错误!

【问题讨论】:

    标签: iis plesk internal-server-error woff woff2


    【解决方案1】:

    像这样改变你的配置:

    <system.webServer>
        <staticContent>
          <remove fileExtension=".woff" />
          <remove fileExtension=".woff2" />
          <remove fileExtension=".eot" />
          <remove fileExtension=".ttf" />
          <remove fileExtension=".svg" />
          <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
          <mimeMap fileExtension=".ttf" mimeType="application/font-sfnt" />
          <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
          <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
          <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
        </staticContent>
    </system.webServer>
    

    【讨论】:

      猜你喜欢
      • 2015-09-20
      • 1970-01-01
      • 1970-01-01
      • 2021-10-11
      • 2014-06-05
      • 2017-08-07
      • 2020-08-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多