How do I Upload my WebGL build to my Web Server?

So I have successfully reimported my project, got it running with all the new bells and whistles of Unity5 beta, and built to WebGL… I am having trouble getting it working on my web server. I have WebGL enabled, but I get a white screen instead of the game. Probably a stupid question, but I haven’t found a simple solution anywhere yet.

Thanks in advance.

You can build to WebGL and view it simply by downloading a free and open source cross-platform web server solution stack package (i.e. XAMPP), then following the setup instructions for starting and accessing your local server. Here is the link for XAMPP:

XAMPP

What works for me is adding a new Unity_Projects folder in xampp/htdocs/ and building my WebGL project there. Then when i want to view my project in WebGL I start my server and open my browser to:

localhost/Unity_Projects/YourUnityProject/YourUnityProject.html

Note: This method will only be local to your machine, if you wish to go live you will need to choose a webhost and setup your own site…

Hope this helps some of you at least see your WebGL projects. :smiley: