Shapespark gives you the option to host scenes on your own web-server. With the Premium plan you can create a bundle of your scene which contains all required files - HTML, textures, JavaScripts, etc.
These files are zipped and need to be unpacked before or after you upload them to your server. If you use the FTP protocol to upload files to your server, make sure to use binary FTP transfer mode. ASCII transfer mode can corrupt the files. The uploaded scenes should work out-of-the-box but we have some web-server configuration recommendations to improve download speed and user experience, which is important if you want to share scenes with a wide audience.
The bundle with an example scene you can find below as the attachment (example-room.zip).
For Apache server
The bundle contains an .htaccess file which enables compression and caching by web browsers for the scene files. This requires mod_rewrite installed and enabled. Please upload .htaccess with other files to the server.
For Nginx server
We recommend enabling compression and caching by web browsers for scene files. The bundle contains an example of nginx.conf with the recommended "locations" rules. This should be adopted to your main Nginx configuration.
For IIS server
To host scenes on an IIS server you have to add content-type for .buf and .bassis files. We also recommend installing two extensions: iis-compression and url-rewrite. Use these extensions to enable compression and to add a header to enable caching by web browsers. The bundle includes a web.config file, which you have to upload with all other files, but you also need to update the global configuration of the server to mark Shapespark files as static content. You can see an example configuration in the applicationHost.config file included in the bundle.
Shapespark hosting with your custom domain
The easiest way to set up serving the scenes from your domain is using the Shapespark provided hosting with the custom domain option. Shapespark hosting uses global distributed CDN to give the best download performance and reliability for your customers. Uploading scenes is fast and convenient; HTTPS certificate is generated automatically with no additional cost; the scenes can be customized with your own HTML/CSS/JS code.