Xepher.Net Forums

Xepher.net => Technical Support => Topic started by: kschnee on September 17, 2016, 11:41:18 pm

Title: Unity/WebGL Support?
Post by: kschnee on September 17, 2016, 11:41:18 pm
I'd like to host projects done with the Unity game engine, but the Web player that engine is now using relies on some very specific HTML5 stuff rather than its old plugin. (Because browsers are phasing plugins out.) To make this system work it looks like I need to take the following advice about the server:

Quote
> I have fixed this issue by opening my /etc/httpd/conf/httpd.conf apache configuration file, and going to the mime_module section. I replaced
>
> AddType application/x-gzip .gz .tgz
>
> with
>
> AddType application/x-gzip .gz .tgz .memgz .jsgz .datagz
>
> and now my browser is automatically decompressing the files when it gets them.
>
(Details are at http://answers.unity3d.com/questions/1235665/webgl-unusable-unknown-compression-method-when-loa.html if interested.)

I don't think I can do this on my end, since it looks like server configuration for the server itself and not for my corner of it. Would you be willing to make this change, please?
Title: Re: Unity/WebGL Support?
Post by: Xepher on September 29, 2016, 09:31:53 pm
Sorry for the late reply, out of town.

You should be able to add that to your own .htaccess file. Just create it in the root of your public_html directory, and it'll be automatically read by the webserver. You can configure a large amount of stuff there, including (as far as I know) mime types. If you have trouble, let me know, and give me a URL/file to check against.