Can I use SPACES as the DNS for my webpage?

  • Posted January 4, 2018
  • DNS

Since uploading public files to spaces creates addresses like 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 but it won’t work with just

Is it possible to achive this?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.

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.

Is there any notification waiting list for this feature? Can’t wait more.

What if I have a CDN in front?