Have you had troubles getting your exported Unity WebGL project to work?
GET /Release/UnityConfig.js 404 (Not Found)
GET /Release/fileloader.js 404 (Not Found)
GET /Release/1446299115.js 404 (Not Found)
I got the instructions here:
- Export your Unity project as WebGL (probably already did this).
- Move every file from the
Release
folder into theCompressed
folder. You can now delete theRelease
folder. Your folder structure should look like this:
.htaccess
index.html
Compressed
* many files (.datagz, .jsgz, .memgz)
TemplateData
* many image files, 1 .css & 1 .js file
-
Enter
sudo a2enmod rewrite
in the terminal (to activate therewrite
Apache module). -
Open
/etc/apache2/apache2.conf
with your favorite text editor and find the following part:<Directory /var/www/>
/<Directory /var/www/html/>
(or wherever your “main” folder is) -
Change
AllowOverride
fromNone
toAll
and save the file.
I hope this helped you!