How can I upload a game to play on my own server?

I have gone through the Unity documentation to run and play a WebGL game, but only found this official site.
I’ve also googled and can’t find anything about it.
I want to upload the games that I have created to my own server, so that the users of my website can play them from there.
Put the games so that they look like a portfolio.
Where can I find documentation to achieve this ?
Is this possible?
I have compiled the game from the Unity dashboard, and uploaded the “Build” folders and the “TemplateData” folder and the index.html, project.data, project.wasm files to my server, but I always get the same error:
Failed to download file Build/project.data.gz. Loading web pages via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host Unity content, or use the Unity Build and Run option.
Failed to load resource: the server responded with a status of 404 (Not Found)


Please don’t double post.

1 Like