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.
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
We also recommend using the hosting provided by Shapespark which uses a global, distributed CDN to give the best experience for your customers. Uploading scenes is fast and convenient; there is a view counter and we also support custom domains. This is the easiest option to set up for serving the scenes from your domain.