Since uploading public files to spaces creates addresses like https://space-name.nyc3.digitaloceanspaces.com/file.png I was wondering if it could be used with a droplet to create a webpage.
So far I tried creating an index.html file, I can access it if I go with https://myspace-name.nyc3.digitaloceanspaces.com/index.html but it won’t work with just https://myspace-name.nyc3.digitaloceanspaces.com/
Is it possible to achive this?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
At the moment spaces doesn’t support website hosting, so you can’t send requests directly to the spaces endpoint and expect index.html to be served when you don’t put it in the url, but you could do that by sending the request to a droplet and proxing it with nginx or varnish to the spaces endpoint. This would allow you to modify the request and append “index.html” to the requested url, making your spaces bucket behave like a normal website.
As @PaoloBarbolini, currently it’s not possible at all. Nginx would be the best solution, and there’s a tutorial on the Community that should help you: How To Proxy DigitalOcean Spaces with Nginx on Ubuntu 16.04.
DigitalOcean plans to add such features to Spaces soon, but in meanwhile, you can vote for it and leave your feedback on the UserVoice page: Host entire static site from Spaces (like S3/GitHub Pages). Allow custom domain alias for Spaces.
Is there any notification waiting list for this feature? Can’t wait more.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.