unity3d 在iis上发布,win7

Posted on 2013-10-15 11:01  JChaos  阅读(503)  评论(0)    收藏  举报

win7 iis 发布unity3d的web遇到问题,网上试了

web.config 上加:

  1. <configuration>
  2.     <system.webServer>
  3.         <staticContent>
  4.            <mimeMap fileExtension=".unity3d" mimeType="application/vnd.unity" />
  5.         </staticContent>
  6.     </system.webServer>
  7. </configuration>

或者在iis管理器上加 MIME 类型,我没有试,直接在web.config加东西就已经可以了

 

还有人说server2003的,我没试

In IIS for Server 2003, to enable the file to be downloaded by the client,
Step 1) right click on the folder that houses the unityweb file and click on properties.

Step 2) Click on HTTP Headers tab
Step 3) Click on MIME Types
Step 4) Click New
Step 5) fill in as follows:
Extension: unityweb
MIME Type: application/x-unity
Step 6) Click OK to close out of each screen (2x OK's)

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3