当前位置:网站首页>Unity packaging webgl uses IIS to solve the error
Unity packaging webgl uses IIS to solve the error
2022-06-28 06:04:00 【The way of growth】
1.
By default ,IIS The server does not provide unknown MIME Static content of type . In order to make Unity Build the ability to IIS To work on , First, you need to .unityweb Extension and application/octet-stream Content types are associated . There are two ways to achieve this :
Use IIS Manager Interface : stay IIS Manager Select your website in the panel , open MIME Types function , And then choose Add… operation . take .unityweb Set to file extension , And will application/octet-stream Set to MIME type , And then click OK.
Use the server configuration file : IIS Use web.config File implementation server configuration . These profiles reflect IIS Manager All changes made to a specific folder in . In order to application/octet-stream MIME The type and .unityweb Extension is associated with
2.
about gzip Compressed build , Please send the following web.config File put in Build A folder :
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".unityweb" />
<mimeMap fileExtension=".unityweb" mimeType="application/octet-stream" />
</staticContent>
<rewrite>
<outboundRules>
<rule name="Append gzip Content-Encoding header">
<match serverVariable="RESPONSE_Content-Encoding" pattern=".*" />
<conditions>
<add input="{REQUEST_FILENAME}" pattern="\.unityweb$" />
</conditions>
<action type="Rewrite" value="gzip" />
</rule>
</outboundRules>
</rewrite>
</system.webServer>
</configuration>
about brotli Compressed build , Please send the following web.config File put in Build A folder :
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".unityweb" />
<mimeMap fileExtension=".unityweb" mimeType="application/octet-stream" />
</staticContent>
<rewrite>
<outboundRules>
<rule name="Append br Content-Encoding header">
<match serverVariable="RESPONSE_Content-Encoding" pattern=".*" />
<conditions>
<add input="{REQUEST_FILENAME}" pattern="\.unityweb$" />
</conditions>
<action type="Rewrite" value="br" />
</rule>
</outboundRules>
</rewrite>
</system.webServer>
</configuration>
Attach one and pack it yourself webgl The screenshots 
边栏推荐
- 不会还有人只会用forEach遍历数组吧?
- Lenovo hybrid cloud Lenovo xcloud, new enterprise IT service portal
- No one can only use foreach to traverse arrays, right?
- What is webrtc?
- pkg打包node工程(express)
- Jenkins continuous integration 1
- Data middle office: construction ideas and implementation experience of data governance
- ipvs 导致syn 重传问题
- 阿里云短信服务(完整指南),短信发送功能实现。
- Binder interview: memory management unit
猜你喜欢

Binder interview: memory management unit

JQ picture amplifier

The custom cube UI pop-up dialog supports multiple and multiple types of input boxes

ES9023音频解码芯片的工作原理
![Taobao seo training video course [22 lectures]](/img/81/21e844542b35010760d061abe905e9.jpg)
Taobao seo training video course [22 lectures]

YYGH-BUG-02

高质量国产立体声编解码器CJC8988,Pin to Pin替代WM8988

Caused by: com. fasterxml. jackson. databind. exc.InvalidDefinitionException: Cannot construct instance

慢内容广告:品牌增长的长线主义

AutoCAD C # Polyline Small Sharp angle Detection
随机推荐
容量调度绝对值配置队列使用与避坑
No one can only use foreach to traverse arrays, right?
YYGH-BUG-03
Small ball playing
bash install. SH ******** error
Data midrange: implementation and summary of AI midrange
[untitled]
YYGH-8-预约挂号
阿里云短信服务(完整指南),短信发送功能实现。
Configure multiple database connections using the SSM framework
Jenkins continues integration 2
Pre training model parameter mismatch
Jenkins继续集成2
RL practice (0) - and the platform xinchou winter season [rule based policy]
报错--解决core-js/modules/es.error.cause.js报错
pytorch详解
Independent station sellers are using the five e-mail marketing skills, do you know?
Syn retransmission caused by IPVS
Yygh-8-appointment registration
What is the e-commerce conversion rate so abstract?