美文网首页
WebGL 放到iis报错

WebGL 放到iis报错

作者: 杰罗xr | 来源:发表于2020-09-09 10:05 被阅读0次

    创建一个 Web.config文件放到index.html一起就好了

    配置文件内容如下

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <system.webServer>
        <staticContent>
          <remove fileExtension=".mem" />
          <remove fileExtension=".data" />
          <remove fileExtension=".unity3d" />
          <remove fileExtension=".jsbr" />
          <remove fileExtension=".membr" />
          <remove fileExtension=".databr" />
          <remove fileExtension=".unity3dbr" />
          <remove fileExtension=".jsgz" />
          <remove fileExtension=".memgz" />
          <remove fileExtension=".datagz" />
          <remove fileExtension=".unity3dgz" />
          <remove fileExtension=".json" />
          <remove fileExtension=".unityweb" />
     
          <mimeMap fileExtension=".mem" mimeType="application/octet-stream" />
          <mimeMap fileExtension=".data" mimeType="application/octet-stream" />
          <mimeMap fileExtension=".unity3d" mimeType="application/octet-stream" />
          <mimeMap fileExtension=".jsbr" mimeType="application/octet-stream" />
          <mimeMap fileExtension=".membr" mimeType="application/octet-stream" />
          <mimeMap fileExtension=".databr" mimeType="application/octet-stream" />
          <mimeMap fileExtension=".unity3dbr" mimeType="application/octet-stream" />
          <mimeMap fileExtension=".jsgz" mimeType="application/x-javascript; charset=UTF-8" />
          <mimeMap fileExtension=".memgz" mimeType="application/octet-stream" />
          <mimeMap fileExtension=".datagz" mimeType="application/octet-stream" />
          <mimeMap fileExtension=".unity3dgz" mimeType="application/octet-stream" />
          <mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
          <mimeMap fileExtension=".unityweb" mimeType="application/octet-stream" />
        </staticContent>
      </system.webServer>
    </configuration>
    

    相关文章

      网友评论

          本文标题:WebGL 放到iis报错

          本文链接:https://www.haomeiwen.com/subject/aoteektx.html