I’m having a hell of a time trying to get my WebGL build to work from my webspace (it works perfectly fine run locally via Firefox on my Win10 PC).
Initially I had the ‘incorrect header’ issue but solved that by adding the web.config file I found here to the ‘Release’ folder.
Once I’d got past that hurdle I’m left with a blank white page that has the Unity logo at the bottom but does not run the app.
All the java console tells me is that it’s a 500 Internal Sever Error related to the UnityLoader.js. I tried asking here if that was something I could fix but had no responses. However a little research seemed to imply that it was a web host problem not a Unity one.
I emailed tech support at my web host but they don’t seem to know what the issue is either. They suggested trying an uncompressed build - I did but it made no difference. They asked if I wanted to migrate it to a Linux server so that I could use the .htaccess file but Unity 5.5 appears to no longer include that in it’s builds.
Finally they asked, if it was designed to work on a Windows server, whether it uses ‘proprietary ASP .net coding’
I have no idea. Does it?
Any other suggestions to how I might fix this would be much appreciated. Indeed, if this is a known issue that will be fixed in future versions, I’m happy to wait.
This issue is now fixed. It turns out I required a web.config file specifically geared to ASP .net and I found one here:
http://rasmus.selsmark.dk/post/2015/11/21/Configuring-ASPNET-web-server-for-Unity-WebGL-content.aspx
1 Like