- Home /
Godaddy windows hosting + unity webplayer
Hi,
My website is hosted with godaddy.com (windows.) I have upgraded my hosting account to IIS7 (from 6 I think it was.) I have followed a tutorial to get a simple game up and running and I've uploaded it to:
http://www.kuneko.com/unity/SpaceShooter.html
There's also the SpaceShooter.unity3d in the same folder.
I've read that I need to create a web.config file to allow the unity3d file to load. All I'm getting at the moment is a 500 - Internal server error. This is in the same folder as my game, putting it at my root folder causes all of my pages to display the error message. This is my web.config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<staticContent>
<mimeMap fileExtension=".unity3d" mimeType="application/vnd.unity" />
</staticContent>
</system.web>
</configuration>
Could someone please help me and let me know what I'm missing?
Thanks,
John
Answer by Cyclops · Apr 04, 2010 at 01:25 PM
Your config file is close, but needs one change: it's system.webServer.
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".unity3d" mimeType="application/vnd.unity" />
</staticContent>
</system.webServer>
</configuration>
@John, do also remember to upvote any good answers you find here in UnityAnswers (for instance, this one :) and/or click the checkbox for the best answer to any of your questions.
Thanks :)
I have the web.config file in the same folder as the .unity3d file and the .html file of my game, and also in my root folder. $$anonymous$$y site is still working which is an improvement from earlier but I still get the 500 - Internal error when I load the http://www.kuneko.com/unity/spaceshooter.html.
Is there anything else I might have overlooked?
Thanks again :)
Ah it's okay now and working. $$anonymous$$aybe I didn't give it enough time to refresh or something...
Thank you very much, Cyclops :)
thanks for this answer, worked for my godaddy hosting!