Can I serve a default page through spaces?

I’m using spaces with a custom domain. Normally it’s just for hosting images, but I was wondering if I could somehow make it so that if someone went directly to the domain, I could display a static web page?

I tried uploading an index.htm and index.html file to the root of the space, but it still just returns an access denied xml error when I try to visit my domain.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


I believe that this is not doable with the DigitalOcean Spaces, but you could do it with the App Platform.

You can have up to 3 free static websites hosted on the App Platform:

Here is a quick video on how to do that as well:

Hope that this helps! Best, Bobby