当前位置:网站首页>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 
边栏推荐
- 若依实现下拉框
- Maskrcnn, fast RCNN, fast RCNN excellent video
- Data middle office: construction ideas and implementation experience of data governance
- AutoCAD C # Polyline Small Sharp angle Detection
- What is webrtc?
- @Autowired注解为空的原因
- Simple handwritten debounce function
- 报错--解决core-js/modules/es.error.cause.js报错
- YYGH-7-用户管理
- 链表(三)——反转链表
猜你喜欢

5g network overall architecture

19 fonctions de perte d'apprentissage profond

Jenkins continuous integration 1

How the third-party libraries in cocoapod reference local header files

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

Binder interview: memory management unit

Working principle of es9023 audio decoding chip

Small ball playing

CAD secondary development +nettopologysuite+pgis reference multi version DLL

AutoCAD C# 多段线自相交检测
随机推荐
Jenkins continuous integration 1
Enum
lombok @EqualsAndHashCode 注解如何让对象.equals()方法只比较部分属性
At first glance, I can see several methods used by motionlayout
What is the e-commerce conversion rate so abstract?
Syn retransmission caused by IPVS
Drop down box for implementation
Yolact++ Pytorch环境
High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
socke.io長連接實現推送、版本控制、實時活躍用戶量統計
Difficulty calculation of Ethereum classic
[MySQL] all query tables contain 20million data -- how to optimize SQL
报错--解决core-js/modules/es.error.cause.js报错
简单手写debounce函数
Caused by: com. fasterxml. jackson. databind. exc.InvalidDefinitionException: Cannot construct instance
Sklearn Feature Engineering (summary)
ES9023音频解码芯片的工作原理
death_satan/hyperf-validate
YYGH-BUG-03
YYGH-7-用户管理