Report this

What is the reason for this report?

Can I use SPACES as the DNS for my webpage?

Posted on January 4, 2018

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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.