Deploying Unity WebGL on Apache
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). Click for a screenshot of my Build Settings
Move every file from the
Releasefolder into the
Compressedfolder. You can now delete the
Releasefolder. Your folder structure should look like this:
sudo a2enmod rewritein the terminal (to activate the
/etc/apache2/apache2.confwith your favorite text editor and find the following part:
<Directory /var/www/html/>(or wherever your “main” folder is)
Alland save the file.
I hope this helped you!